mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
chore(editor): Tweak amx, helm, undo-tree and flyspell keybinds
This commit is contained in:
@@ -12,8 +12,6 @@
|
||||
:bind
|
||||
("M-x" . amx)
|
||||
("C-x C-m" . amx)
|
||||
("C-c C-m" . amx)
|
||||
("C-c C-c M-x" . execute-extended-command)
|
||||
|
||||
:custom
|
||||
(amx-backend 'ivy)
|
||||
|
||||
@@ -11,20 +11,25 @@
|
||||
(emacs-startup . global-undo-tree-mode)
|
||||
|
||||
:bind
|
||||
("C-x u" . undo-tree-visualize)
|
||||
("M--" . undo-tree-undo)
|
||||
("M-_" . undo-tree-redo)
|
||||
("s-z" . undo-tree-undo)
|
||||
("s-Z" . undo-tree-redo)
|
||||
(:map undo-tree-map
|
||||
("C-x u" . undo-tree-visualize)
|
||||
("M--" . undo-tree-undo)
|
||||
("M-_" . undo-tree-redo)
|
||||
("s-z" . undo-tree-undo)
|
||||
("s-Z" . undo-tree-redo))
|
||||
|
||||
:diminish
|
||||
undo-tree-mode
|
||||
|
||||
:custom
|
||||
;; autosave the undo-tree history
|
||||
(undo-tree-history-directory-alist
|
||||
`((".*" . ,(expand-file-name "undo-tree-history" siren-cache-dir))))
|
||||
(undo-tree-auto-save-history nil))
|
||||
(undo-tree-auto-save-history nil) ;; use undohist package instead
|
||||
|
||||
:config
|
||||
;; Unbind keys that I don't use.
|
||||
(unbind-key "C-/" undo-tree-map)
|
||||
(unbind-key "C-?" undo-tree-map))
|
||||
|
||||
(provide 'siren-undo-tree)
|
||||
;;; siren-undo-tree.el ends here
|
||||
|
||||
@@ -29,16 +29,19 @@
|
||||
("C-x C-f" . helm-find-files)
|
||||
("C-c f f" . helm-for-files)
|
||||
("C-c f r" . helm-recentf)
|
||||
("C-c C-m" . helm-M-x)
|
||||
|
||||
:custom
|
||||
(helm-M-x-always-save-history t)
|
||||
(helm-M-x-fuzzy-match t)
|
||||
(helm-autoresize-max-height 30)
|
||||
(helm-autoresize-min-height 30)
|
||||
(helm-autoresize-mode t)
|
||||
(helm-always-two-windows t)
|
||||
(helm-autoresize-max-height 48)
|
||||
(helm-autoresize-min-height 10)
|
||||
(helm-autoresize-mode nil)
|
||||
(helm-buffer-max-length 64)
|
||||
(helm-case-fold-search 'smart)
|
||||
(helm-command-prefix-key "C-c h")
|
||||
(helm-display-header-line t)
|
||||
(helm-echo-input-in-header-line t)
|
||||
(helm-ff-file-name-history-use-recentf t)
|
||||
(helm-ff-search-library-in-sexp t)
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'siren-ivy)
|
||||
|
||||
(use-package flyspell
|
||||
:straight (:type built-in)
|
||||
:demand
|
||||
:diminish flyspell-mode
|
||||
:bind
|
||||
("s-." . flyspell-correct-word-before-point)
|
||||
|
||||
:hook
|
||||
(prog-mode . flyspell-prog-mode)
|
||||
@@ -27,5 +27,10 @@
|
||||
;; Unbind keys used by siren-resize-window module.
|
||||
(unbind-key "C-;" flyspell-mode-map))
|
||||
|
||||
(use-package flyspell-correct-ivy
|
||||
:bind ("C-/" . flyspell-correct-wrapper)
|
||||
:custom
|
||||
(flyspell-correct-interface #'flyspell-correct-ivy))
|
||||
|
||||
(provide 'siren-flyspell)
|
||||
;;; siren-flyspell.el ends here
|
||||
|
||||
Reference in New Issue
Block a user