Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In addition to the recommended CapsLock ⇒ LCtrl rebinding done on the OS level, there are also several things you can do within Emacs to edit and navigate comfortably.

For example, you can add this to your ~/.emacs:

    (global-set-key [f8] 'view-mode)
This lets you quickly enable and disable view-mode, using F8. In view-mode, you can use SPACE and BACKSPACE for scrolling, which is useful for reading longer documents and files.

With a Dvorak keyboard, navigation is also more convenient, since for example C-n and C-p are at the respective locations of C-l and C-r on US keyboards, so that both hands are regularly used and not used.

Other than that, I recommend to also use search for navigation, and to occasionally read and re-read the first chapters of the Emacs manual: There are many useful commands that can help a lot if you know them and their prefix arguments.



Thanks for the suggestion to use view-mode. I bound a quick double-tap of vv.

    (use-package key-chord
      :init
      (key-chord-mode 1)
      ;; (key-chord-define-global "jj" #'avy-goto-word-or-subword-1)
      (key-chord-define-global "vv" #'view-mode)
      :custom (key-chord-one-key-delay 0.3))




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: