Minor, general refactors

This commit is contained in:
Henrik Lissner 2019-03-09 02:42:03 -05:00
parent 442bd7cfb9
commit 54d1c0dd56
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
8 changed files with 22 additions and 17 deletions

View file

@ -17,9 +17,6 @@
"M-;" #'eval-expression
"A-;" #'eval-expression)
[remap evil-jump-to-tag] #'projectile-find-tag
[remap find-tag] #'projectile-find-tag
;; Smart tab
:i [tab] (general-predicate-dispatch nil ; fall back to nearest keymap
(and (featurep! :feature snippets)

View file

@ -131,12 +131,12 @@
:prefix doom-leader-key "u" #'universal-argument-more
:prefix doom-leader-alt-key "u" #'universal-argument-more))
(defun +default|setup-input-decode-map ()
(defun +default|init-input-decode-map ()
"Ensure TAB and [tab] are treated the same in TTY Emacs."
(define-key input-decode-map [tab] (kbd "TAB"))
(define-key input-decode-map [return] (kbd "RET"))
(define-key input-decode-map [escape] (kbd "ESC")))
(add-hook 'tty-setup-hook #'+default|setup-input-decode-map)
(add-hook 'tty-setup-hook #'+default|init-input-decode-map)
;; A Doom convention where C-s on popups and interactive searches will invoke
;; ivy/helm for their superior filtering.