Enable midnight-minor-mode for pdf-tools

This commit is contained in:
lemyx 2025-02-06 08:00:47 +08:00
parent abf98cf956
commit f7bb9afa05
2 changed files with 3 additions and 3 deletions

View File

@ -8,8 +8,8 @@
:config :config
; Line Truncation @ https://www.gnu.org/software/emacs/manual/html_node/emacs/Line-Truncation.html ; Line Truncation @ https://www.gnu.org/software/emacs/manual/html_node/emacs/Line-Truncation.html
(add-hook 'org-mode-hook (lambda () (setq truncate-lines nil))) (add-hook 'org-mode-hook (lambda () (setq truncate-lines nil)))
; Dynamic Headline Numbering @ https://orgmode.org/manual/Dynamic-Headline-Numbering.html ;; ; Dynamic Headline Numbering @ https://orgmode.org/manual/Dynamic-Headline-Numbering.html
(setq org-startup-numerated t) ;; (setq org-startup-numerated t)
; Hide emphasis markup characters in buffers @ https://orgmode.org/manual/Emphasis-and-Monospace.html ; Hide emphasis markup characters in buffers @ https://orgmode.org/manual/Emphasis-and-Monospace.html
(setq org-hide-emphasis-markers t) (setq org-hide-emphasis-markers t)
; if there is a #+ATTR.*: width="200", resize to 200, otherwise resize to 320 ; if there is a #+ATTR.*: width="200", resize to 200, otherwise resize to 320

View File

@ -28,7 +28,7 @@
(require 'pdf-annot) ; 设置 pdf-annot-mimor-mode-map (require 'pdf-annot) ; 设置 pdf-annot-mimor-mode-map
(require 'pdf-history) ; 设置 pdf-history-minor-mode-map (require 'pdf-history) ; 设置 pdf-history-minor-mode-map
(add-hook 'pdf-view-mode-hook 'pdf-view-fit-width-to-window) ; 默认适应页宽 (add-hook 'pdf-view-mode-hook 'pdf-view-fit-width-to-window) ; 默认适应页宽
; (add-hook 'pdf-view-mode-hook 'pdf-view-midnight-minor-mode) ; 默认夜间模式 (add-hook 'pdf-view-mode-hook 'pdf-view-midnight-minor-mode) ; 默认夜间模式
(add-hook 'TeX-after-compilation-finished-functions (add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer) ; 完成编译后刷新 pdf 文件 #'TeX-revert-document-buffer) ; 完成编译后刷新 pdf 文件
) )