commit da7a49545022a3bc5f2bee1a456246e0f6892665 parent b2d3ae26b8894a858f6248eb5ed6d95a5e840005 Author: Yuval Langer <yuval.langer@gmail.com> Date: Sun, 24 Dec 2023 19:56:46 +0200 Start greader-mode automatically for nov.el and eww-mode. Diffstat:
M | config/emacs/init.el | | | 32 | +++++++++++++++++++++----------- |
1 file changed, 21 insertions(+), 11 deletions(-)
diff --git a/config/emacs/init.el b/config/emacs/init.el @@ -9,10 +9,15 @@ (unless (server-running-p) (server-start)) +(column-number-mode) + (setq package-archives '()) (require 'use-package) +(use-package scheme-mode + :mode "\\.\\(scm\\|sxml\\)\\'") + (use-package undo-tree :config (global-undo-tree-mode 1) @@ -20,19 +25,26 @@ (use-package nano-tts) +(use-package nov + :mode ("\\.epub\\'" . nov-mode)) + +(use-package greader + :hook ((eww-mode . greader-mode) + (nov-mode . greader-mode))) + ;; https://emacs.stackexchange.com/questions/34322/set-default-coding-system-utf-8 (set-language-environment "utf-8") (use-package - org-roam - :custom (org-roam-directory "~/mine/roam/") - :bind (("C-c n l" . org-roam-buffer-toggle) - ("C-c n f" . org-roam-node-find) - ("C-c n i" . org-roam-node-insert)) - :config - (org-roam-db-autosync-enable) - ;(org-roam-db-autosync-mode) - ) + org-roam + :custom (org-roam-directory "~/mine/roam/") + :bind (("C-c n l" . org-roam-buffer-toggle) + ("C-c n f" . org-roam-node-find) + ("C-c n i" . org-roam-node-insert)) + :config + (org-roam-db-autosync-enable) + ;;(org-roam-db-autosync-mode) + ) (show-paren-mode) @@ -367,6 +379,4 @@ https://www.tomsdiner.org/blog/post_0003_sourcehut_readme_org_export.html" (setq dictionary-server "localhost") -(use-package greader) - (setq gc-cons-threshold (* 200 1024 1024))