Bläddra i källkod

Buffer narrowing shortcuts mapped on SPC-v-

I like this feature.
Eiyeron Fulmincendii 4 år sedan
förälder
incheckning
9795ec77d5
1 ändrade filer med 9 tillägg och 0 borttagningar
  1. 9 0
      config.org

+ 9 - 0
config.org

@@ -849,6 +849,15 @@ keyboard. Let's add a mapping to quickly insert various kaomojis.
 I have further questions adressed to myself regarding the mental sanity behind
 such feature.
 ** TODO Pragmata's own characters
+* TODO Narrow shortcuts
+#+begin_src emacs-lisp
+(map! :leader
+      :desc "View" "v" nil
+      :desc "Narrow to region" "vr" #'narrow-to-region
+      :desc "Narrow to defun" "vd" #'narrow-to-defun
+      :desc "Narrow to page" "vp" #'narrow-to-page
+      :desc "Widen" "vw" #'widen)
+#+end_src
 * TODO Command line extension
 #+begin_src emacs-lisp
     (defun command-line-ediff (switch)