From 979a1c53860c2aa8705084ebaedba2ea8d85665e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 4 Aug 2017 15:28:28 +0200 Subject: Emacs: Use outshine instead of lentic --- emacs/.emacs.d/init.el | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'emacs/.emacs.d/init.el') diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index fb5a75e..5df1f8b 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -1200,7 +1200,7 @@ :after company) ;; #+END_SRC -;;; * Dates: & Times +;;; ** Dates & Times ;; *** Calendar @@ -1762,6 +1762,24 @@ :config (global-lentic-mode)) ;; #+END_SRC +;; *** Outshine + +;; Org-ified source code. I think this might work better than +;; lentic-mode, whilst also being more general. + +;; #+BEGIN_SRC emacs-lisp +(defvar outline-minor-mode-prefix "M-#") +(use-package outshine + :bind (:map outline-minor-mode-map + ("TAB" . outline-cycle) + ("" . outshine-cycle-buffer)) + :config (progn + (add-hook 'outline-minor-mode-hook #'outshine-hook-function) + (add-hook 'emacs-lisp-mode-hook #'outline-minor-mode) + (add-hook 'ledger-mode-hook #'outline-minor-mode) + (add-hook 'sh-mode-hook #'outline-minor-mode))) +;; #+END_SRC + ;; *** Org ;; Org is wünderbar. @@ -2827,7 +2845,3 @@ :config (unless (server-running-p server-name) (server-start))) ;; #+END_SRC - -;; Local Variables: -;; lentic-init: lentic-orgel-org-init -;; End: -- cgit 1.4.1