diff options
author | ThanosApollo <[email protected]> | 2022-10-25 22:08:43 +0300 |
---|---|---|
committer | ThanosApollo <[email protected]> | 2022-10-25 22:08:43 +0300 |
commit | fde632d972b630fed4196335cc40fc1cea0b0f16 (patch) | |
tree | 649e4f33d3ea586319e5f138e166f2be72966ac2 | |
parent | 297647083b2b43e47b16b9bd7f2130f362678bbb (diff) |
Update hooks
-rw-r--r-- | Developer/emacs/init.el | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/Developer/emacs/init.el b/Developer/emacs/init.el index a8e9178..91fb8e4 100644 --- a/Developer/emacs/init.el +++ b/Developer/emacs/init.el @@ -109,7 +109,8 @@ (menu-bar--display-line-numbers-mode-relative) ;;Disable line numbers for some modes (dolist (mode '(term-mode-hook - eshell-mode-hook)) + eshell-mode-hook + pdf-view-mode-hook)) (add-hook mode (lambda () (display-line-numbers-mode 0)))) ;;Rainbow @@ -148,17 +149,11 @@ "t" '(:ignore t :which-key "toggles") "tt" '(counsel-load-theme :which-key "choose theme"))) -;; (defun apollo/evil-hook () -;; (dolist (mode '(custom-mode -;; eshell-mode -;; git-rebase-mode -;; erc-mode -;; circe-server-mode -;; circe-chat-mode -;; circe-query-mode -;; sauron-mode -;; term-mode)) -;; (add-to-list 'evil-emacs-state-modes mode))) +(defun apollo/evil-hook () + (evil-set-initial-state 'pdf-view-mode 'emacs) + (add-hook 'pdf-view-mode-hook + (lambda () + (set (make-local-variable 'evil-emacs-state-cursor) (list nil))))) (use-package evil :init @@ -166,7 +161,7 @@ (setq evil-want-keybinding nil) (setq evil-want-C-u-scroll t) (setq evil-want-C-i-jump nil) - ;; :hook (evil-mode . apollo/evil-hook) +;; :hook (evil-mode . apollo/evil-hook) :config (evil-mode 1) (define-key evil-insert-state-map (kbd "C-f") 'evil-normal-state) @@ -197,6 +192,7 @@ :config (pdf-tools-install)) + (use-package projectile :diminish projectile-mode :config (projectile-mode) @@ -334,9 +330,8 @@ :foreground "#bfafdf")) -(defun apollo/org-mode-visual-fill () - (setq visual-fill-column-center-text nil) - (visual-fill-column-mode 1)) +(defun apollo/read-book () + (interactive) + (blink-cursor-mode 0)) + -;; (use-package visual-fill-column -;; :hook (org-mode . apollo/org-mode-visual-fill)) |