aboutsummaryrefslogtreecommitdiff
path: root/shoshimacs.org
diff options
context:
space:
mode:
authorGrant Shoshin Shangreaux <shoshin@cicadas.surf>2022-08-16 22:43:31 -0500
committerGrant Shoshin Shangreaux <shoshin@cicadas.surf>2022-08-16 22:43:31 -0500
commitd5a49f0bbcfeeac32fd669f90e2cfa6bb2384b29 (patch)
treea5b92a67187a699e5fb1babe4b107e51f4e5570f /shoshimacs.org
parent135ea6b726ecb5a5fb5fac833194a535d0230007 (diff)
Add: [org][babel][font] font size based on host name & ob-shell
Diffstat (limited to 'shoshimacs.org')
-rw-r--r--shoshimacs.org20
1 files changed, 18 insertions, 2 deletions
diff --git a/shoshimacs.org b/shoshimacs.org
index ee08916..eef48d6 100644
--- a/shoshimacs.org
+++ b/shoshimacs.org
@@ -581,6 +581,15 @@ this seems to be required to fontify source blocks
(package-install 'htmlize)
#+end_src
+*** babel
+
+#+begin_src emacs-lisp
+ (org-babel-do-load-languages
+ 'org-babel-load-languages
+ '((emacs-lisp . t)
+ (shell . t)))
+#+end_src
+
** recentf-mode
this tracks recently operated on files (by default) and enables quick selection
@@ -712,10 +721,17 @@ depending on the window layout currently in use.
** Fonts
For code, I've grown fond of Victor Mono.
-#+begin_src emacs-lisp
- (set-frame-font "Victor Mono")
+#+name: host
+#+begin_src shell :tangle no
+ hostname
+#+end_src
+
+#+begin_src emacs-lisp :var hostname=host()
+ (let ((size (if (equal hostname "zebes") 18 12)))
+ (set-frame-font (format "Victor Mono-%s" size)))
#+end_src
+
*** COMMENT Attempt to install the font via Emacs, url.el and ~make-process~
in the end, this "works" but isn't very useful. the font cache needs to be updated