FIX ord folding and arrows

This commit is contained in:
Nathan Dwarshuis 2023-08-13 14:42:04 -04:00
parent ebda9d0079
commit 90b48c11b7
1 changed files with 10 additions and 5 deletions

View File

@ -1752,11 +1752,16 @@ The advantage of doing it this way is that I can byte-compile and test independe
(require 'org-x) (require 'org-x)
#+end_src #+end_src
** buffer interface ** buffer interface
*** startup folding *** folding
Org 9.4 by default makes files open with the outline totally unfolded. I don't like this; it makes it seem like my laptop is screaming at me whenever I view an org file. Org 9.4 by default makes files open with the outline totally unfolded. I don't like this; it makes it seem like my laptop is screaming at me whenever I view an org file.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq org-startup-folded t) (setq org-startup-folded t)
#+end_src #+end_src
Org 9.6 seemed to switch the default folding style which breaks search/replace. Change it back like so.
#+begin_src emacs-lisp
(setq org-fold-core-style 'overlays)
#+end_src
*** line wrap *** line wrap
I often write long, lengthy prose in org buffers, so use =visual-line-mode= to make lines wrap in automatic and sane manner. I often write long, lengthy prose in org buffers, so use =visual-line-mode= to make lines wrap in automatic and sane manner.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -4052,10 +4057,10 @@ These are for mode-specific bindings that can/should be outside of the evil maps
(add-hook 'org-mode-hook (add-hook 'org-mode-hook
(lambda () (lambda ()
;; use the hyper keys/vim arrows with the shifters instead of shift/arrows ;; use the hyper keys/vim arrows with the shifters instead of shift/arrows
(local-set-key (kbd "H-k") 'org-shiftup) (local-set-key (kbd "H-<up>") 'org-shiftup)
(local-set-key (kbd "H-l") 'org-shiftright) (local-set-key (kbd "H-<right>") 'org-shiftright)
(local-set-key (kbd "H-j") 'org-shiftdown) (local-set-key (kbd "H-<down>") 'org-shiftdown)
(local-set-key (kbd "H-h") 'org-shiftleft) (local-set-key (kbd "H-<left>") 'org-shiftleft)
;; storing links is important, make a shortcut ;; storing links is important, make a shortcut
(local-set-key (kbd "C-c l") 'org-store-link) (local-set-key (kbd "C-c l") 'org-store-link)