refactor(docs): replace nav menus with virtual one

Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
This commit is contained in:
Henrik Lissner 2022-04-02 02:02:17 +02:00
parent c34168fb2a
commit 1255315bfc
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
167 changed files with 143 additions and 338 deletions

View file

@ -1,5 +1,3 @@
← [[doom-module-index:][Back to module index]] ! [[doom-module-issues:::editor evil][Issues]] ↖ [[doom-repo:tree/develop/modules/editor/evil/][Github]] ± [[doom-suggest-edit:][Suggest edits]] ? [[doom-help-modules:][Help]]
--------------------------------------------------------------------------------
#+title: :editor evil
#+subtitle: The text editor Emacs was missing
#+created: April 08, 2020
@ -202,6 +200,27 @@ If you prefer the old behavior, it can be reversed with:
Evil-specific configuration and keybindings (defined with ~map!~) will be
ignored without [[doom-module:][:editor evil]] present (and omitted when byte-compiling).
** Include underscores in evil word motions?
A more in-depth answer and explanation for this can be found [[https://evil.readthedocs.io/en/latest/faq.html#underscore-is-not-a-word-character][in Evil's
documentation]].
TL;DR If you want the underscore to be recognized as word character, you can
modify its entry in the syntax-table:
#+begin_src emacs-lisp
(modify-syntax-entry ?_ "w")
#+end_src
This gives the underscore the word syntax-class. You can use a mode-hook to
modify the syntax-table in all buffers of some mode, e.g.
#+begin_src emacs-lisp
;; For python
(add-hook! 'python-mode-hook (modify-syntax-entry ?_ "w"))
;; For ruby
(add-hook! 'ruby-mode-hook (modify-syntax-entry ?_ "w"))
;; For Javascript
(add-hook! 'js2-mode-hook (modify-syntax-entry ?_ "w"))
#+end_src
* TODO Appendix
#+begin_quote
🔨 This module has no appendix yet. [[doom-contrib-module:][Write one?]]