summary refs log tree commit diff stats
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el24
1 files changed, 19 insertions, 5 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index fb5a75ed..5df1f8be 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)
+              ("<backtab>" . 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: