mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
get rid of outshine
This commit is contained in:
@@ -100,7 +100,7 @@ Returns t if version changed, nil otherwise."
|
||||
(beginning-of-buffer)
|
||||
(re-search-forward ";; .. Changelog")
|
||||
(next-line)
|
||||
(tvd-outshine-end-of-section)
|
||||
;; (tvd-outshine-end-of-section)
|
||||
(when newversion
|
||||
(insert (format "\n;; %s\n" tvd-emacs-version)))
|
||||
(insert (format ";; - %s\n" entry)))))
|
||||
@@ -116,12 +116,9 @@ Returns t if version changed, nil otherwise."
|
||||
show-trailing-whitespace t)
|
||||
(eldoc-mode t)
|
||||
|
||||
;; enable outline (with outshine)
|
||||
;; enable outline
|
||||
(outline-minor-mode)
|
||||
|
||||
;; enable outshine mode
|
||||
(outshine-hook-function)
|
||||
|
||||
(electric-indent-local-mode t)))
|
||||
|
||||
;; use UP arrow for history in *ielm* as well, just as C-up
|
||||
|
||||
@@ -239,4 +239,9 @@ down and unfold it, otherwise jump paragraph as usual."
|
||||
(with-eval-after-load 'info
|
||||
(info-initialize)
|
||||
(add-to-list 'Info-directory-list
|
||||
(expand-file-name "~/.emacs.d/lisp/org/doc"))))
|
||||
(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))))
|
||||
|
||||
@@ -57,16 +57,12 @@ otherwise fold current level and jump one level up."
|
||||
'(progn
|
||||
(add-hook 'outline-minor-mode-hook
|
||||
(lambda ()
|
||||
;; narrowing, we use outshine functions, it's loaded anyway
|
||||
(defalias 'n 'outshine-narrow-to-subtree)
|
||||
;; narrowing, we use org functions, it's loaded anyway
|
||||
(defalias 'n 'org-narrow-to-subtree)
|
||||
(defalias 'w 'widen)
|
||||
(define-key outline-minor-mode-map (kbd "<C-up>") 'tvd-outline-heading-up)
|
||||
(define-key outline-minor-mode-map (kbd "<C-down>") 'tvd-outline-heading-down)
|
||||
;;(define-key outline-minor-mode-map (kbd "<C-left>") 'tvd-outline-left-or-level-up)
|
||||
))))
|
||||
|
||||
;; orange fringe when narrowed
|
||||
(advice-add 'outshine-narrow-to-subtree :after
|
||||
'(lambda (&rest args)
|
||||
(set-face-attribute 'fringe nil :background tvd-fringe-narrow-bg)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user