mirror of
				https://github.com/larstvei/dot-emacs.git
				synced 2025-11-04 09:20:11 +00:00 
			
		
		
		
	Updated matlab-mode (and other tweaks).
This commit is contained in:
		
							parent
							
								
									eac3bdfe80
								
							
						
					
					
						commit
						92ac81466f
					
				
							
								
								
									
										11
									
								
								init.el
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								init.el
									
									
									
									
									
								
							@ -65,7 +65,8 @@ PACKAGE is installed and the current version is deleted."
 | 
				
			|||||||
    (insert "Time-stamp: <>")
 | 
					    (insert "Time-stamp: <>")
 | 
				
			||||||
    (time-stamp)))
 | 
					    (time-stamp)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(when do-package-update-on-init
 | 
					(when (and do-package-update-on-init
 | 
				
			||||||
 | 
					           (y-or-n-p "Update all packages?"))
 | 
				
			||||||
  (package-refresh-contents)
 | 
					  (package-refresh-contents)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  (dolist (package
 | 
					  (dolist (package
 | 
				
			||||||
@ -83,6 +84,7 @@ PACKAGE is installed and the current version is deleted."
 | 
				
			|||||||
             jedi              ; Python auto-completion for Emacs
 | 
					             jedi              ; Python auto-completion for Emacs
 | 
				
			||||||
             magit             ; control Git from Emacs
 | 
					             magit             ; control Git from Emacs
 | 
				
			||||||
             markdown-mode     ; Emacs Major mode for Markdown-formatted files.
 | 
					             markdown-mode     ; Emacs Major mode for Markdown-formatted files.
 | 
				
			||||||
 | 
					             matlab-mode       ; MATLAB integration with Emacs.
 | 
				
			||||||
             monokai-theme     ; A fruity color theme for Emacs.
 | 
					             monokai-theme     ; A fruity color theme for Emacs.
 | 
				
			||||||
             move-text         ; Move current line or region with M-up or M-down
 | 
					             move-text         ; Move current line or region with M-up or M-down
 | 
				
			||||||
             multiple-cursors  ; Multiple cursors for Emacs.
 | 
					             multiple-cursors  ; Multiple cursors for Emacs.
 | 
				
			||||||
@ -96,8 +98,11 @@ PACKAGE is installed and the current version is deleted."
 | 
				
			|||||||
         '(auto-compile             ; auto-compile .el files
 | 
					         '(auto-compile             ; auto-compile .el files
 | 
				
			||||||
           auto-complete-config     ; a configuration for auto-complete-mode
 | 
					           auto-complete-config     ; a configuration for auto-complete-mode
 | 
				
			||||||
           jedi                     ; auto-completion for python
 | 
					           jedi                     ; auto-completion for python
 | 
				
			||||||
           pretty-lambdada          ; show 'lambda' as the greek letter.
 | 
					           matlab                   ; matlab-mode
 | 
				
			||||||
 | 
					           ob-matlab                ; org-babel matlab
 | 
				
			||||||
           ox-latex                 ; the latex-exporter (from org)
 | 
					           ox-latex                 ; the latex-exporter (from org)
 | 
				
			||||||
 | 
					           ox-md                    ; Markdown exporter (from org)
 | 
				
			||||||
 | 
					           pretty-lambdada          ; show 'lambda' as the greek letter.
 | 
				
			||||||
           recentf                  ; recently opened files
 | 
					           recentf                  ; recently opened files
 | 
				
			||||||
           tex-mode))               ; TeX, LaTeX, and SliTeX mode commands
 | 
					           tex-mode))               ; TeX, LaTeX, and SliTeX mode commands
 | 
				
			||||||
  (require feature))
 | 
					  (require feature))
 | 
				
			||||||
@ -436,4 +441,4 @@ LANGUAGES (cyclic) list."
 | 
				
			|||||||
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
 | 
					(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
 | 
				
			||||||
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
 | 
					(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(add-to-list 'auto-mode-alist '("\\.m$" . octave-mode))
 | 
					(add-to-list 'matlab-shell-command-switches "-nosplash")
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										11
									
								
								init.org
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								init.org
									
									
									
									
									
								
							@ -136,7 +136,8 @@
 | 
				
			|||||||
   configurations are also dependent on them).
 | 
					   configurations are also dependent on them).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   #+BEGIN_SRC emacs-lisp :tangle yes
 | 
					   #+BEGIN_SRC emacs-lisp :tangle yes
 | 
				
			||||||
     (when do-package-update-on-init
 | 
					     (when (and do-package-update-on-init
 | 
				
			||||||
 | 
					                (y-or-n-p "Update all packages?"))
 | 
				
			||||||
       (package-refresh-contents)
 | 
					       (package-refresh-contents)
 | 
				
			||||||
     
 | 
					     
 | 
				
			||||||
       (dolist (package
 | 
					       (dolist (package
 | 
				
			||||||
@ -154,6 +155,7 @@
 | 
				
			|||||||
                  jedi              ; Python auto-completion for Emacs
 | 
					                  jedi              ; Python auto-completion for Emacs
 | 
				
			||||||
                  magit             ; control Git from Emacs
 | 
					                  magit             ; control Git from Emacs
 | 
				
			||||||
                  markdown-mode     ; Emacs Major mode for Markdown-formatted files.
 | 
					                  markdown-mode     ; Emacs Major mode for Markdown-formatted files.
 | 
				
			||||||
 | 
					                  matlab-mode       ; MATLAB integration with Emacs.
 | 
				
			||||||
                  monokai-theme     ; A fruity color theme for Emacs.
 | 
					                  monokai-theme     ; A fruity color theme for Emacs.
 | 
				
			||||||
                  move-text         ; Move current line or region with M-up or M-down
 | 
					                  move-text         ; Move current line or region with M-up or M-down
 | 
				
			||||||
                  multiple-cursors  ; Multiple cursors for Emacs.
 | 
					                  multiple-cursors  ; Multiple cursors for Emacs.
 | 
				
			||||||
@ -174,8 +176,11 @@
 | 
				
			|||||||
              '(auto-compile             ; auto-compile .el files
 | 
					              '(auto-compile             ; auto-compile .el files
 | 
				
			||||||
                auto-complete-config     ; a configuration for auto-complete-mode
 | 
					                auto-complete-config     ; a configuration for auto-complete-mode
 | 
				
			||||||
                jedi                     ; auto-completion for python
 | 
					                jedi                     ; auto-completion for python
 | 
				
			||||||
                pretty-lambdada          ; show 'lambda' as the greek letter.
 | 
					                matlab                   ; matlab-mode
 | 
				
			||||||
 | 
					                ob-matlab                ; org-babel matlab
 | 
				
			||||||
                ox-latex                 ; the latex-exporter (from org)
 | 
					                ox-latex                 ; the latex-exporter (from org)
 | 
				
			||||||
 | 
					                ox-md                    ; Markdown exporter (from org)
 | 
				
			||||||
 | 
					                pretty-lambdada          ; show 'lambda' as the greek letter.
 | 
				
			||||||
                recentf                  ; recently opened files
 | 
					                recentf                  ; recently opened files
 | 
				
			||||||
                tex-mode))               ; TeX, LaTeX, and SliTeX mode commands
 | 
					                tex-mode))               ; TeX, LaTeX, and SliTeX mode commands
 | 
				
			||||||
       (require feature))
 | 
					       (require feature))
 | 
				
			||||||
@ -870,5 +875,5 @@
 | 
				
			|||||||
   need to let =.m=-files be associated with =octave-mode=.
 | 
					   need to let =.m=-files be associated with =octave-mode=.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   #+BEGIN_SRC emacs-lisp :tangle yes
 | 
					   #+BEGIN_SRC emacs-lisp :tangle yes
 | 
				
			||||||
     (add-to-list 'auto-mode-alist '("\\.m$" . octave-mode))
 | 
					     (add-to-list 'matlab-shell-command-switches "-nosplash")
 | 
				
			||||||
   #+END_SRC
 | 
					   #+END_SRC
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user