Variable pitch mode for org files.
This commit is contained in:
@@ -135,12 +135,33 @@ This is my configuration for the emacs editor.
|
||||
#+END_SRC
|
||||
|
||||
** Font
|
||||
Set up the fonts that should be used by emacs.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(set-face-attribute 'default nil
|
||||
:family "Hack"
|
||||
:height 110
|
||||
:weight 'normal
|
||||
:width 'normal)
|
||||
(custom-theme-set-faces
|
||||
'user
|
||||
'(variable-pitch ((t (:family "Source Sans Pro" :height 1.1 :weight light))))
|
||||
'(fixed-pitch ((t ( :family "Hack" :slant normal :weight normal :height 1.0 :width normal)))))
|
||||
#+END_SRC
|
||||
|
||||
This sets different fonts for special blocks in org-mode. So that when ~variable-pitch~ mode is active code block are not broken.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(custom-theme-set-faces
|
||||
'user
|
||||
'(org-block ((t (:inherit fixed-pitch))))
|
||||
'(org-document-info-keyword ((t (:inherit (shadow fixed-pitch)))))
|
||||
'(org-link ((t (:foreground "royal blue" :underline t))))
|
||||
'(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch)))))
|
||||
'(org-property-value ((t (:inherit fixed-pitch))) t)
|
||||
'(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch)))))
|
||||
'(org-tag ((t (:inherit (shadow fixed-pitch) :weight bold :height 0.8))))
|
||||
'(org-verbatim ((t (:inherit (shadow fixed-pitch)))))
|
||||
'(org-table ((t (:inherit (shadow fixed-pitch)))))
|
||||
'(org-indent ((t (:inherit (org-hide fixed-pitch))))))
|
||||
#+END_SRC
|
||||
|
||||
* Ivy
|
||||
@@ -333,12 +354,15 @@ This is my configuration for the emacs editor.
|
||||
("C-c o a" . org-agenda)
|
||||
:map org-mode-map
|
||||
("M-s-<return>" . org-insert-todo-heading)
|
||||
("M-<return>" . org-insert-heading-respect-content)
|
||||
("C-c c" . org-mode-insert-code)
|
||||
("C-c a s" . org-emphasize)
|
||||
("C-c a r" . org-ref)
|
||||
("C-c a e" . outline-show-all)
|
||||
("C-c a t" . unindent-by-four))
|
||||
:hook (org-mode . visual-line-mode)
|
||||
:hook ((org-mode . visual-line-mode)
|
||||
(org-mode . variable-pitch-mode)
|
||||
(org-mode . org-indent-mode))
|
||||
:config
|
||||
(let ((todo-path (expand-file-name "~/Notes/todo.org")))
|
||||
(when (file-exists-p todo-path)
|
||||
@@ -349,7 +373,7 @@ This is my configuration for the emacs editor.
|
||||
org-startup-with-inline-images t
|
||||
org-pretty-entities t
|
||||
org-indent-mode t
|
||||
org-ellipsis "…"
|
||||
org-ellipsis "⤵"
|
||||
org-footnote-section nil
|
||||
org-hide-leading-stars nil
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user