|
|
@ -146,7 +146,9 @@ Install and configure packages. |
|
|
|
:after evil |
|
|
|
:after evil |
|
|
|
:custom |
|
|
|
:custom |
|
|
|
(evil-collection-company-use-tng nil) |
|
|
|
(evil-collection-company-use-tng nil) |
|
|
|
(evil-collection-key-blacklist '("M-h" "M-j" "M-k" "M-l" "SPC")) |
|
|
|
(evil-collection-key-blacklist (list dot/leader-key dot/localleader-key |
|
|
|
|
|
|
|
dot/leader-alt-key dot/localleader-alt-key |
|
|
|
|
|
|
|
"M-h" "M-j" "M-k" "M-l")) |
|
|
|
(evil-collection-setup-minibuffer t) |
|
|
|
(evil-collection-setup-minibuffer t) |
|
|
|
:config (evil-collection-init)) |
|
|
|
:config (evil-collection-init)) |
|
|
|
|
|
|
|
|
|
|
@ -300,7 +302,7 @@ On the fly syntax checking. |
|
|
|
:config |
|
|
|
:config |
|
|
|
|
|
|
|
|
|
|
|
;; Enable which-key descriptions |
|
|
|
;; Enable which-key descriptions |
|
|
|
(dolist (leader-key (list "SPC" "M-SPC")) |
|
|
|
(dolist (leader-key (list dot/leader-key dot/leader-alt-key)) |
|
|
|
(let ((lsp-keymap-prefix (concat leader-key " l"))) |
|
|
|
(let ((lsp-keymap-prefix (concat leader-key " l"))) |
|
|
|
(lsp-enable-which-key-integration))) |
|
|
|
(lsp-enable-which-key-integration))) |
|
|
|
|
|
|
|
|
|
|
@ -889,7 +891,7 @@ Disable spacebar in evil motion. |
|
|
|
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
(with-eval-after-load 'evil-states |
|
|
|
(with-eval-after-load 'evil-states |
|
|
|
(define-key evil-motion-state-map (kbd "SPC") nil)) |
|
|
|
(define-key evil-motion-state-map (kbd dot/leader-key) nil)) |
|
|
|
|
|
|
|
|
|
|
|
(with-eval-after-load 'php-mode |
|
|
|
(with-eval-after-load 'php-mode |
|
|
|
(define-key php-mode-map (kbd "C-M-h") nil)) |
|
|
|
(define-key php-mode-map (kbd "C-M-h") nil)) |
|
|
@ -1001,11 +1003,10 @@ General.el ~leader key binds. |
|
|
|
*** Global |
|
|
|
*** Global |
|
|
|
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
(with-eval-after-load 'general |
|
|
|
|
|
|
|
(general-create-definer space-leader |
|
|
|
(general-create-definer space-leader |
|
|
|
:prefix "SPC" |
|
|
|
:prefix dot/leader-key |
|
|
|
:non-normal-prefix "M-SPC" |
|
|
|
:non-normal-prefix dot/leader-alt-key |
|
|
|
:global-prefix "M-SPC" |
|
|
|
:global-prefix dot/leader-alt-key |
|
|
|
:states '(normal visual insert motion emacs)) |
|
|
|
:states '(normal visual insert motion emacs)) |
|
|
|
|
|
|
|
|
|
|
|
(space-leader |
|
|
|
(space-leader |
|
|
@ -1114,7 +1115,7 @@ General.el ~leader key binds. |
|
|
|
;; winner-undo |
|
|
|
;; winner-undo |
|
|
|
|
|
|
|
|
|
|
|
"x" '(smex-major-mode-commands :which-key "Smex major mode") |
|
|
|
"x" '(smex-major-mode-commands :which-key "Smex major mode") |
|
|
|
)) |
|
|
|
) |
|
|
|
#+END_SRC |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
|
|
|
|
Evaluated keybinds. |
|
|
|
Evaluated keybinds. |
|
|
@ -1135,14 +1136,14 @@ https://github.com/suyashbire1/emacs.d/blob/master/init.el |
|
|
|
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
(general-create-definer local-leader |
|
|
|
(general-create-definer local-leader |
|
|
|
:prefix "SPC m" |
|
|
|
:prefix dot/localleader-key |
|
|
|
:non-normal-prefix "M-SPC m" |
|
|
|
:non-normal-prefix dot/localleader-alt-key |
|
|
|
:global-prefix "M-SPC m" |
|
|
|
:global-prefix dot/localleader-alt-key |
|
|
|
:states '(normal visual insert motion emacs) |
|
|
|
:states '(normal visual insert motion emacs) |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
(which-key-add-key-based-replacements "SPC m" "<local leader>") |
|
|
|
(which-key-add-key-based-replacements dot/localleader-key "<localleader>") |
|
|
|
(which-key-add-key-based-replacements "M-SPC m" "<local leader>") |
|
|
|
(which-key-add-key-based-replacements dot/localleader-alt-key "<localleader>") |
|
|
|
|
|
|
|
|
|
|
|
(local-leader org-mode-map |
|
|
|
(local-leader org-mode-map |
|
|
|
"'" '(org-edit-special :which-key "Org edit") |
|
|
|
"'" '(org-edit-special :which-key "Org edit") |
|
|
|