mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
fix outshine, add config-general-mode
This commit is contained in:
12
.emacs
12
.emacs
@@ -389,8 +389,8 @@
|
|||||||
;; - removed GNUS config, not used anymore
|
;; - removed GNUS config, not used anymore
|
||||||
;; - restored C-d binding to viking in paredit
|
;; - restored C-d binding to viking in paredit
|
||||||
;; - added outshine HTML exporter via org: outshine-to-html
|
;; - added outshine HTML exporter via org: outshine-to-html
|
||||||
|
;; - fixed outshine config
|
||||||
|
;; - added (my) config-general-mode
|
||||||
|
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------------
|
||||||
@@ -1942,6 +1942,8 @@ col1, col2"
|
|||||||
|
|
||||||
(require 'config-general-mode)
|
(require 'config-general-mode)
|
||||||
(add-hook 'config-general-mode-hook 'electric-indent-mode)
|
(add-hook 'config-general-mode-hook 'electric-indent-mode)
|
||||||
|
(add-hook 'config-general-mode-hook '(lambda ()
|
||||||
|
(outline-minor-mode)))
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------------
|
||||||
;; ** Text Manupilation
|
;; ** Text Manupilation
|
||||||
@@ -2906,9 +2908,11 @@ specify another regex for cell splitting."
|
|||||||
|
|
||||||
(require 'outshine)
|
(require 'outshine)
|
||||||
|
|
||||||
;; Only use it for .emacs, so:
|
;; enable when outline
|
||||||
|
(add-hook 'outline-minor-mode-hook 'outshine-hook-function)
|
||||||
|
|
||||||
|
;; use it for .emacs:
|
||||||
(add-hook 'emacs-lisp-mode-hook '(lambda ()
|
(add-hook 'emacs-lisp-mode-hook '(lambda ()
|
||||||
(outshine-hook-function)
|
|
||||||
(outline-minor-mode)))
|
(outline-minor-mode)))
|
||||||
|
|
||||||
;; I do have my own outshine parser here. It generates an alist of all
|
;; I do have my own outshine parser here. It generates an alist of all
|
||||||
|
|||||||
789
emacs.html
789
emacs.html
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user