rm duplicate code, rm custom info dir, make org mode the default

This commit is contained in:
2023-06-01 18:26:35 +02:00
parent a8cb7a8b98
commit 08c5f5458a

View File

@@ -235,16 +235,8 @@ down and unfold it, otherwise jump paragraph as usual."
'(lambda (&rest args) '(lambda (&rest args)
(set-face-attribute 'fringe nil :background tvd-fringe-narrow-bg))) (set-face-attribute 'fringe nil :background tvd-fringe-narrow-bg)))
;; always use the latest docs ;; I hate fundamental mode!
(with-eval-after-load 'info (setq default-major-mode 'org-mode))
(info-initialize)
(add-to-list 'Info-directory-list
(expand-file-name "~/.emacs.d/lisp/org/doc")))
;; orange fringe when narrowed
(advice-add 'org-narrow-to-subtree :after
'(lambda (&rest args)
(set-face-attribute 'fringe nil :background tvd-fringe-narrow-bg))))
(provide 'init-org) (provide 'init-org)