Undo kkp tab and return decoding
This commit is contained in:
parent
535dc0313e
commit
5c3c492fd8
28
init.el
28
init.el
@ -381,18 +381,18 @@ directory. Otherwise, run `find-file' on that file."
|
||||
:defer nil
|
||||
:config
|
||||
(global-kkp-mode 1)
|
||||
(defun my/-kkp-after-terminal-setup ()
|
||||
;; Make tab and backtab work properly
|
||||
(define-key input-decode-map [(control ?i)] [tab])
|
||||
(define-key input-decode-map [(control ?I)] [backtab])
|
||||
(define-key input-decode-map [(control ?m)] [return]))
|
||||
(defun my/-kkp-after-terminal-teardown (term)
|
||||
(with-selected-frame (car (frames-on-display-list term))
|
||||
(define-key input-decode-map [(control ?i)] nil t)
|
||||
(define-key input-decode-map [(control ?I)] nil t)
|
||||
(define-key input-decode-map [(control ?m)] nil t)))
|
||||
(advice-add 'kkp--terminal-setup :after 'my/-kkp-after-terminal-setup)
|
||||
(advice-add 'kkp--terminal-teardown :after 'my/-kkp-after-terminal-teardown)
|
||||
;; (defun my/-kkp-after-terminal-setup ()
|
||||
;; ;; Make tab and backtab work properly
|
||||
;; (define-key input-decode-map [(control ?i)] [tab])
|
||||
;; (define-key input-decode-map [(control ?I)] [backtab])
|
||||
;; (define-key input-decode-map [(control ?m)] [return]))
|
||||
;; (defun my/-kkp-after-terminal-teardown (term)
|
||||
;; (with-selected-frame (car (frames-on-display-list term))
|
||||
;; (define-key input-decode-map [(control ?i)] nil t)
|
||||
;; (define-key input-decode-map [(control ?I)] nil t)
|
||||
;; (define-key input-decode-map [(control ?m)] nil t)))
|
||||
;; (advice-add 'kkp--terminal-setup :after 'my/-kkp-after-terminal-setup)
|
||||
;; (advice-add 'kkp--terminal-teardown :after 'my/-kkp-after-terminal-teardown)
|
||||
(defun my/quoted-insert (arg)
|
||||
"Insert the next character using read-key, not read-char."
|
||||
(interactive "*p")
|
||||
@ -632,7 +632,9 @@ in the region and indents once)."
|
||||
'lisp-dedent-adjust-parens)
|
||||
(evil-define-key '(normal visual) adjust-parens-mode-map
|
||||
(kbd "<tab>") #'my/lisp-indent-adjust-parens
|
||||
(kbd "<backtab>") #'my/lisp-dedent-adjust-parens))
|
||||
(kbd "<backtab>") #'my/lisp-dedent-adjust-parens
|
||||
(kbd "C-c C-i") #'my/lisp-indent-adjust-parens
|
||||
(kbd "C-c S-<tab>") #'my/lisp-dedent-adjust-parens))
|
||||
|
||||
;; for when the files are just too large
|
||||
(use-package vlf
|
||||
|
Loading…
Reference in New Issue
Block a user