[Emacs] Beter doc, better writeroom config

This commit is contained in:
Lucien Cartier-Tilet 2021-06-18 10:26:28 +02:00
parent 45c7e1c4eb
commit f1173f76e8
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -1986,6 +1986,8 @@ Finally, lets make ~ivy~ richer:
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Editing-Evil-Nerd-Commenterd2w1fl6184j0 :CUSTOM_ID: Packages-Configuration-Editing-Evil-Nerd-Commenterd2w1fl6184j0
:END: :END:
Emacs default commenting system is nice, but I dont find it smart
enough for me.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package evil-nerd-commenter (use-package evil-nerd-commenter
:after evil :after evil
@ -2040,13 +2042,16 @@ escaping your strings!
:CUSTOM_ID: Packages-Configuration-Editing-Writeroomxt12fl6184j0 :CUSTOM_ID: Packages-Configuration-Editing-Writeroomxt12fl6184j0
:END: :END:
On the other hand, ~writeroom~ allows the user to enter a On the other hand, ~writeroom~ allows the user to enter a
distraction-free mode of Emacs, and I like that! distraction-free mode of Emacs, and I like that! But the default width
is a bit too small for me, and I prefer not to go fullscren.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package writeroom-mode (use-package writeroom-mode
:defer t :defer t
:straight (:build t) :straight (:build t)
:config :config
(setq writeroom-width 100)) (setq writeroom-width 100
writeroom-fullscreen-effect nil
writeroom-maximize-window nil))
#+end_src #+end_src
** Emacs built-ins ** Emacs built-ins
@ -3955,8 +3960,8 @@ Undefining some stuff to make keybind prefixes work correctly.
"wo" #'other-window "wo" #'other-window
"wD" #'delete-other-windows "wD" #'delete-other-windows
"ww" '(nil :wk "writeroom") "ww" '(nil :wk "writeroom")
"ww." #'writeroom-buffer-width/body
"www" #'writeroom-mode "www" #'writeroom-mode
"wwb" #'writeroom-buffer-width/body
"wc" #'evil-window-left "wc" #'evil-window-left
"wt" #'evil-window-down "wt" #'evil-window-down