X-Git-Url: https://git.donarmstrong.com/?p=home-base.git;a=blobdiff_plain;f=.emacs;h=1a9953df5a7475b20cb3dc5f74606a02d72aa99e;hp=abf076154e436a72d4540a6c6eef921f2a77cb78;hb=32b4d58f31a89f1f9b2cec3e8b029c135ad353c8;hpb=2b5ef98465df8228456af2906bd44d8f2eaabaa8 diff --git a/.emacs b/.emacs index abf0761..1a9953d 100644 --- a/.emacs +++ b/.emacs @@ -274,7 +274,17 @@ (add-hook 'c-mode-common-hook 'flyspell-prog-mode) (add-hook 'cperl-mode-hook 'flyspell-prog-mode) (add-hook 'tcl-mode-hook 'flyspell-prog-mode) +(add-hook 'ess-mode-hook 'flyspell-prog-mode) (defun turn-on-flyspell () "Force flyspell-mode on using a positive arg. For use in hooks." (interactive) - (flyspell-mode 1)) \ No newline at end of file + (flyspell-mode 1)) + +;;; outlining support for ess modes +(add-hook 'ess-mode-hook + '(lambda () + (outline-minor-mode) + (setq outline-regexp "\\(^#\\{4,5\\} \\)\\|\\(^[a-zA-Z0-9_\.]+ ?<- ?function(.*{\\)") + (defun outline-level + (lambda () (interactive) (cond ((looking-at "^##### ") 1)((looking-at "^#### ") 2)((looking-at "^[a-zA-Z0-9_\.]+ ?<- ?function(.*{") 3) (t 1000))) + ))) \ No newline at end of file