X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/2176627ce01dff84926fb2b997779a223efe50e8..18fed9bb660805e445c9abe0d288da5642c03098:/.emacs.d/init.el diff --git a/.emacs.d/init.el b/.emacs.d/init.el index ce05ab4..e8be641 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -786,6 +786,12 @@ Effectively a very simple light/dark theme toggle switch." (add-hook 'tex-mode-hook #'auto-fill-mode) (add-hook 'tex-mode-hook #'flyspell-mode) +(run-with-idle-timer 0.5 nil #'require 'cmake-mode) +(with-eval-after-load 'cmake-mode + (setq cmake-tab-width 4) + (add-to-list 'load-path (b/lisp "cmake-font-lock")) + (run-with-idle-timer 0.5 nil #'require 'cmake-font-lock)) + ;;; Emacs enhancements & auxiliary packages @@ -954,6 +960,21 @@ Effectively a very simple light/dark theme toggle switch." (with-eval-after-load 'emms (setq emms-directory (b/var "emms"))) +(add-to-list 'load-path (b/lisp "ffs")) +(run-with-idle-timer 0.5 nil #'require 'ffs) +(with-eval-after-load 'ffs + (global-set-key (kbd "C-c f s") #'ffs)) + +(defun b/export-frame () + (interactive) + ;; TODO: ask for fn and/or take as arg + (let* ((fn (make-temp-file "emacs" nil ".pdf")) + (data (x-export-frames nil 'pdf))) + (with-temp-file fn + (insert data)) + (kill-new fn) + (message fn))) + ;;; Post initialization