Skip to content

Commit

Permalink
daily usage fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Ye committed Sep 23, 2024
1 parent fc47779 commit 598c700
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
23 changes: 12 additions & 11 deletions phye-lisp/phye-init-key.el
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,12 @@
"w" 'phye/wgrep-change-to-wgrep-mode)

(general-define-key
:keymaps '(deadgrep-mode-map pdf-outline-buffer-mode-map)
:keymaps '(
deadgrep-mode-map
pdf-outline-buffer-mode-map
xref--xref-buffer-mode-map
pdf-view-mode-map
pdf-occur-buffer-mode-map)
:prefix ";"
";" 'ace-pinyin-jump-char-2)

Expand Down Expand Up @@ -227,11 +232,6 @@
"j" 'xref-next-line
"k" 'xref-prev-line)

(general-define-key
:keymaps 'xref--xref-buffer-mode-map
:prefix ";"
";" 'ace-pinyin-jump-char-2)

(general-define-key
:keymaps 'dired-mode-map
"h" 'dired-up-directory
Expand Down Expand Up @@ -270,13 +270,14 @@
"%" 'evil-jump-item
"m" 'evilmi-jump-items))

(general-define-key
:keymaps 'pdf-view-mode-map
"j" 'pdf-view-scroll-up-or-next-page
"k" 'pdf-view-scroll-down-or-previous-page)

(general-define-key
:keymaps 'Info-mode-map
"C-o" 'evil-execute-in-normal-state)

(general-define-key
:keymaps 'pdf-view-mode-map
"C-s" 'pdf-occur
"C-x o" 'ace-window
",xo" 'ace-window)

(provide 'phye-init-key)
4 changes: 2 additions & 2 deletions phye-lisp/phye-init-themes.el
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@
(phye/load-theme previous-dark-theme))
(phye/set-bg-color light)
(when (display-graphic-p)
(shell-command "~/bin/scripts/toggle_dark_theme.sh")))))

(when (eq (selected-frame) (car (frame-list)))
(shell-command "~/bin/scripts/toggle_dark_theme.sh"))))))
(run-at-time "14:00" 86400 #'(lambda () (phye/toggle-theme t)))
(run-at-time "16:30" 86400 #'(lambda () (phye/toggle-theme nil)))

Expand Down

0 comments on commit 598c700

Please sign in to comment.