Some improvements when running in a terminal

This commit is contained in:
Jeremy Dormitzer 2019-01-29 17:54:34 -05:00
parent 33f15a2d38
commit f1ab04d41c

View File

@ -659,6 +659,7 @@ Always show inline images:
(general-def 'normal org-mode-map "K" #'org-move-subtree-up)
(general-def 'normal org-mode-map "J" #'org-move-subtree-down)
(general-def 'normal org-mode-map "<return>" #'org-return)
(general-def 'normal org-mode-map "TAB" #'org-cycle)
(general-def org-mode-map "C-c e" #'org-preview-latex-fragment)
(general-def "C-c l" #'org-store-link)
#+END_SRC
@ -839,6 +840,7 @@ A function to load a font, including overriding any theme settings for org-mode
(intern (completing-read "Change face: " (face-list)))
(completing-read "Load font: " (font-family-list))
(read-minibuffer "Font height: " "120")))
(when (display-graphic-p)
(if (not (number-or-marker-p height))
(error "Height must be a number.")
(if (member font (font-family-list))
@ -851,7 +853,7 @@ A function to load a font, including overriding any theme settings for org-mode
'jdormit/font
(cons `(,face (,font ,height)) font-alist))))
(error "Face %s not found." (symbol-name face)))
(error "Font %s not found." font))))
(error "Font %s not found." font)))))
(defun jdormit/load-persisted-fonts ()
(let ((fonts (jdormit/get-font-alist)))