Some improvements when running in a terminal
This commit is contained in:
parent
33f15a2d38
commit
f1ab04d41c
@ -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 "K" #'org-move-subtree-up)
|
||||||
(general-def 'normal org-mode-map "J" #'org-move-subtree-down)
|
(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 "<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 org-mode-map "C-c e" #'org-preview-latex-fragment)
|
||||||
(general-def "C-c l" #'org-store-link)
|
(general-def "C-c l" #'org-store-link)
|
||||||
#+END_SRC
|
#+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)))
|
(intern (completing-read "Change face: " (face-list)))
|
||||||
(completing-read "Load font: " (font-family-list))
|
(completing-read "Load font: " (font-family-list))
|
||||||
(read-minibuffer "Font height: " "120")))
|
(read-minibuffer "Font height: " "120")))
|
||||||
|
(when (display-graphic-p)
|
||||||
(if (not (number-or-marker-p height))
|
(if (not (number-or-marker-p height))
|
||||||
(error "Height must be a number.")
|
(error "Height must be a number.")
|
||||||
(if (member font (font-family-list))
|
(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
|
'jdormit/font
|
||||||
(cons `(,face (,font ,height)) font-alist))))
|
(cons `(,face (,font ,height)) font-alist))))
|
||||||
(error "Face %s not found." (symbol-name face)))
|
(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 ()
|
(defun jdormit/load-persisted-fonts ()
|
||||||
(let ((fonts (jdormit/get-font-alist)))
|
(let ((fonts (jdormit/get-font-alist)))
|
||||||
|
Loading…
Reference in New Issue
Block a user