Skip to content

Commit

Permalink
emacs(evil): fix -collection warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bqv committed Feb 13, 2021
1 parent 8e10d64 commit 5922cd2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions emacs/evil.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
diminish = [ "undo-tree-mode" ];
config = ''
(setq evil-default-cursor (quote (t "#750000"))
evil-visual-state-cursor '("#880000" box)
evil-insert-state-cursor '("#00CC00" box)
evil-normal-state-cursor '("#0088CC" box))
evil-visual-state-cursor '("#880000" box)
evil-insert-state-cursor '("#00CC00" box)
evil-normal-state-cursor '("#0088CC" box))
;(advice-add 'global-set-key :after
; (lambda (old-fn &rest args)
; (apply 'evil-global-set-key args)))
Expand All @@ -33,6 +33,8 @@
(define-key evil-normal-state-map (kbd "C-w") 'kill-region)
(define-key evil-visual-state-map (kbd "C-w") 'kill-region)
(setq evil-want-keybinding nil) ; https://github.com/emacs-evil/evil-collection/issues/60
;; Override :q to kill buffer only
(evil-define-command evil-quit (&optional force)
"Close the current buffer (Overridden)."
Expand Down

0 comments on commit 5922cd2

Please sign in to comment.