doom: evil-snipe remapping, rust-setup, company-quickhelp

This commit is contained in:
Julian Mutter 2021-11-23 16:23:46 +00:00
parent 215c2a1f63
commit 17b80372c8
3 changed files with 21 additions and 2 deletions

View File

@ -75,7 +75,7 @@
;; Spell checking settings
;; TODO make toggling of spell checking ('SPC t s') use flyspell-mode in text modes and flyspell-prog-mode in programming modes (see hooks below)
;; TODO make toggling of spell checking ('SPC t s') use flyspell-mode in text modesm and flyspell-prog-mode in programming modes (see hooks below)
;; Removing hooks for automatic spell checking set here: https://github.com/hlissner/doom-emacs/blob/develop/modules/checkers/spell/config.el
(remove-hook! '(org-mode-hook
markdown-mode-hook
@ -104,6 +104,20 @@
(message "Dictionary switched from %s to %s" dic change)
))
(add-hook 'tetris-mode-hook #'turn-off-evil-mode)
;; Make sniping simpler for german keyboard
(setq evil-snipe-scope 'visible)
(map! :map evil-snipe-override-mode-map :m "," #'evil-snipe-repeat)
(map! :map evil-snipe-override-mode-map :m ";" #'evil-snipe-repeat-reverse)
(map! :map evil-snipe-parent-transient-map "," #'evil-snipe-repeat)
(map! :map evil-snipe-parent-transient-map ";" #'evil-snipe-repeat-reverse)
;; (when evil-snipe-override-evil-repeat-keys
;; (evil-define-key 'motion map
;; "," 'evil-snipe-repeat
;; ";" 'evil-snipe-repeat-reverse))
;; Python settings
;; (add-hook 'python-mode-hook (lambda ()
;; (setq flycheck-checker 'python-pylint)))
@ -154,3 +168,6 @@
((string= "Lu" first-char-prop) ; Upper case
(downcase-region $p1 (+ $p1 1)))
(t (message "Word does not start with a alphabetic character"))))))
;; Add company-quickhelp
(company-quickhelp-mode)

View File

@ -158,7 +158,7 @@
;;rest ; Emacs as a REST client
;;rst ; ReST in peace
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
(rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
;;scala ; java, but good
;;(scheme +guile) ; a fully conniving family of lisps
;;sh ; she sells {ba,z,fi}sh shells on the C xor

View File

@ -9,6 +9,8 @@
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
;(package! some-package)
(package! company-quickhelp)
;; To install a package directly from a remote git repo, you must specify a
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
;; https://github.com/raxod502/straight.el#the-recipe-format