diff options
-rw-r--r-- | X/.xinitrc | 3 | ||||
-rw-r--r-- | doom/config.org | 14 | ||||
-rw-r--r-- | doom/packages.el | 2 | ||||
-rw-r--r-- | zsh/.zsh/export.zsh | 1 |
4 files changed, 19 insertions, 1 deletions
@@ -5,6 +5,9 @@ usermodmap=$HOME/.Xmodmap sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap +export GTK_IM_MODULE=xim +export QT_IM_MODULE=xim + # merge in defaults and keymaps if [ -f $sysresources ]; then diff --git a/doom/config.org b/doom/config.org index 3ebd1e0..b35d7fd 100644 --- a/doom/config.org +++ b/doom/config.org @@ -1017,7 +1017,19 @@ https://yannherklotz.com") :hook (coq-mode . alectryon-mode) :config (map! :map alectryon-mode-map - "C-c u t" #'alectryon-toggle)) + "C-c u t" #'alectryon-toggle + "C-c u p" #'ymhg/alectryon-preview) + (defun ymhg/alectryon-preview () + "Display an HTML preview of the current buffer." + (interactive) + (let* ((html-fname (make-temp-file "alectryon" nil ".html")) + (args `("-r" "5" "-" ,html-fname))) + (apply #'call-process-region nil nil "rst2html5" nil nil nil args) + (message "Compilation complete") + (browse-url html-fname)))) + +(use-package! ox-context + :after org) (use-package! ox-tufte :after org diff --git a/doom/packages.el b/doom/packages.el index 6b5f23c..9089104 100644 --- a/doom/packages.el +++ b/doom/packages.el @@ -8,6 +8,8 @@ (package! ox-gfm) (package! ox-tufte :recipe (:host nil :repo "https://git.sr.ht/~ymherklotz/ox-tufte")) +(package! ox-context + :recipe (:host github :repo "Jason-S-Ross/ox-context")) (package! org-transclusion :recipe (:host github :repo "nobiot/org-transclusion")) (package! org-zettelkasten diff --git a/zsh/.zsh/export.zsh b/zsh/.zsh/export.zsh index 5bd3ed9..fc5e3fc 100644 --- a/zsh/.zsh/export.zsh +++ b/zsh/.zsh/export.zsh @@ -42,6 +42,7 @@ prepend_path "/opt/context/tex/texmf-osx-64/bin" # prepend_path "/usr/local/opt/llvm/bin" prepend_path "/mnt/data/tools/panda/bambu-9.7-dev/bin" +prepend_path "/opt/context/tex/texmf-linux-64/bin" append_path "/opt/Xilinx/Vivado/2019.1/bin" append_path "/opt/intelFPGA_lite/18.1/quartus/bin" |