dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit aa76ba51c92a475c4c95d0e701e2bab02ef7462f
parent 381231d5a073f4082bb0d7073b3d0b31b52f944e
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Sat, 10 May 2014 20:58:36 +0200

added julia hook, configured auto indent with return

Diffstat:
M.emacs.d/init.el | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/.emacs.d/init.el b/.emacs.d/init.el @@ -125,7 +125,9 @@ (require 'ob-latex) (require 'ob-python) (require 'ob-sh) +;(require 'ob-julia) +;; org export modes (require 'ox-latex) (require 'ox-beamer) (require 'ox-odt) @@ -198,6 +200,11 @@ (setq-default tab-width 4) (setq c-default-style "linux" c-basic-offset 4) +(add-hook 'julia-mode-hook + (lambda () + (setq default-tab-width 4) + (setq julia-basic-offset 4))) + ;; Setup modes for files (setq auto-mode-alist (append @@ -316,3 +323,7 @@ ;; choose your own fonts, in a system dependant way (if (string-match "apple-darwin" system-configuration) (set-face-font 'default "Monaco-11")) ; os x + +;; auto-indent with C-j. If auto-indent also is desired for return, use: +;(define-key global-map (kbd "RET") 'newline-and-indent) +(define-key global-map (kbd "RET") 'reindent-then-newline-and-indent)