[Emacs] Better Emacs visual customization

This commit is contained in:
Lucien Cartier-Tilet 2020-11-28 18:14:06 +01:00
parent 4ee2023364
commit 05ba577b2f
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -3035,6 +3035,7 @@ In order to make org-mode even sexier, lets enable ~variable-pitch-mode~ for
(add-hook 'org-mode-hook 'variable-pitch-mode) (add-hook 'org-mode-hook 'variable-pitch-mode)
(auto-fill-mode -1) (auto-fill-mode -1)
#+END_SRC #+END_SRC
Fonts will play an important part in this, but so will colors and font size. The following code is largely based on the one found [[https://zzamboni.org/post/beautifying-org-mode-in-emacs/][on this blog post]] and [[https://lepisma.xyz/2017/10/28/ricing-org-mode/][this one]]. Fonts will play an important part in this, but so will colors and font size. The following code is largely based on the one found [[https://zzamboni.org/post/beautifying-org-mode-in-emacs/][on this blog post]] and [[https://lepisma.xyz/2017/10/28/ricing-org-mode/][this one]].
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(let* ((font `(:font "Charis SIL" :height 1.0)) (let* ((font `(:font "Charis SIL" :height 1.0))
@ -3070,6 +3071,7 @@ Fonts will play an important part in this, but so will colors and font size. The
'(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch) :height 0.8)))) '(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch) :height 0.8))))
'(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch))))))) '(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch)))))))
#+END_SRC #+END_SRC
Some other tweaks will make Org-mode more beautiful. This includes a new folding icon, some indentation that is not added whitespace. Some other tweaks will make Org-mode more beautiful. This includes a new folding icon, some indentation that is not added whitespace.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-startup-indented t (setq org-startup-indented t
@ -3078,8 +3080,12 @@ Some other tweaks will make Org-mode more beautiful. This includes a new folding
org-fontify-whole-heading-line t org-fontify-whole-heading-line t
org-fontify-done-headline t org-fontify-done-headline t
org-fontify-quote-and-verse-blocks t org-fontify-quote-and-verse-blocks t
org-display-inline-images t
org-redisplay-inline-images t
org-startup-with-inline-images "inlineimages"
org-ellipsis "  ") org-ellipsis "  ")
#+END_SRC #+END_SRC
Finally, lets limit the width of images inlined in org buffers to 400px: Finally, lets limit the width of images inlined in org buffers to 400px:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-image-actual-width 400) (setq org-image-actual-width 400)
@ -3092,12 +3098,6 @@ Finally, lets limit the width of images inlined in org buffers to 400px:
Just because it is pleasing to the eye, some symbols in source code get prettified into simpler symbols. Here is the list of symbols that are to be prettified. You can see in the corresponding comment what symbol will be displayed. Just because it is pleasing to the eye, some symbols in source code get prettified into simpler symbols. Here is the list of symbols that are to be prettified. You can see in the corresponding comment what symbol will be displayed.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq prettify-symbols-alist '(("lambda" . 955) ; λ (setq prettify-symbols-alist '(("lambda" . 955) ; λ
("->" . 8594) ; →
("<->" . 8596) ; ↔
("<-" . 8592) ; ←
("=>" . 8658) ; ⇒
("<=>" . 8860) ; ⇔
("<=" . 8656) ; ⇐
("mapc" . 8614) ; ↦ ("mapc" . 8614) ; ↦
("map" . 8614) ; ↦ ("map" . 8614) ; ↦
(">>" . 187) ; » (">>" . 187) ; »
@ -3110,6 +3110,15 @@ Lets enable this mode globally.
(global-prettify-symbols-mode 1) (global-prettify-symbols-mode 1)
#+END_SRC #+END_SRC
*** Misc
:PROPERTIES:
:CUSTOM_ID: User-Configuration-Visual-configuration-Misc-2f4ce585
:END:
Emacs is already silent, but lets set the bell as visible:
#+BEGIN_SRC emacs-lisp
(setq visible-bell t)
#+END_SRC
** Nov-mode ** Nov-mode
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: User_Configuration-Nov-mode-6f10765d :CUSTOM_ID: User_Configuration-Nov-mode-6f10765d