From fd2e80c23197f6ef893e49bcf532c16ce71b970b Mon Sep 17 00:00:00 2001 From: KemoNine Date: Wed, 12 Apr 2023 13:52:39 -0400 Subject: [PATCH] make org syntax highlighting of code blocks a global config --- code/init.el | 5 +---- common/_global.el | 3 +++ org/init.el | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/code/init.el b/code/init.el index bad0190..8ae2dc2 100644 --- a/code/init.el +++ b/code/init.el @@ -45,9 +45,6 @@ ; Fix resolution of ~ to match other client paths (setenv "HOME" "/data/data/com.termux/files/home/") (setq default-directory "/data/data/com.termux/files/home/") - - ; Better fonts - (setq org-src-fontify-natively t) ; Setup xdg-open as the default for opening files (except for the few we want emacs to open native) ; xdg-open is linked to termux-open by default ; if you need 'more' look into tmux-open and adjust accordingly @@ -177,7 +174,7 @@ '(variable-pitch ((t (:family "Atkinson Hyperlegible" :height 120))))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; set ui to standard org-workspace at launch +; set ui to standard empty code workspace at launch (add-hook 'after-init-hook (lambda () (kmn/workspace-code-empty) )) diff --git a/common/_global.el b/common/_global.el index 602ae4b..9b658ba 100644 --- a/common/_global.el +++ b/common/_global.el @@ -254,6 +254,9 @@ ;; use y or n instead of yes or no (fset 'yes-or-no-p 'y-or-n-p) +; org mode syntax highlight code blocks +(setq org-src-fontify-natively t) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; set font for emoji -- DOES NOT WORK ON MOBILE (when (eq system-type 'windows-nt) diff --git a/org/init.el b/org/init.el index cbcf5fa..63c6ccb 100644 --- a/org/init.el +++ b/org/init.el @@ -46,9 +46,6 @@ (setenv "HOME" "/data/data/com.termux/files/home/") (setq default-directory "/data/data/com.termux/files/home/") - ; Better fonts - (setq org-src-fontify-natively t) - ; Setup xdg-open as the default for opening files (except for the few we want emacs to open native) ; xdg-open is linked to termux-open by default ; if you need 'more' look into tmux-open and adjust accordingly ; (add-to-list 'org-file-apps '("\\.doc.*" . "open %s")) @@ -117,7 +114,6 @@ (setq org-return-follows-link t) (setq org-startup-folded t) (setq org-support-shift-select t) -(setq org-src-fontify-natively t) (setq org-log-into-drawer t) (setq org-log-done t)