private/hlissner: revise bindings (again)

+ Remove defunct + refactor
+ Move evil-easymotion bindings to private/hlissner
+ Remove backtab 'fix' in bindings (doesn't work)
+ Clear leader/localleader keys first
+ Put key "fixers" in input-decode-map
This commit is contained in:
Henrik Lissner 2017-05-28 12:33:58 +02:00
parent b00d5edd26
commit 86cca42723
3 changed files with 159 additions and 134 deletions

View file

@ -9,11 +9,12 @@ private/hlissner/snippets."
(expand-file-name "snippets" (doom-module-path :private 'hlissner))))
;;;###autoload
(defun +hlissner/C-u-M-x ()
"Invokes `execute-extended-command' with the universal argument."
(defun +hlissner/yank-buffer-filename ()
"Copy the current buffer's path to the kill ring."
(interactive)
(let ((current-prefix-arg 4))
(call-interactively #'execute-extended-command)))
(if-let (filename (or buffer-file-name (bound-and-true-p list-buffers-directory)))
(message (kill-new (abbreviate-file-name file-name)))
(error "Couldn't find filename in current buffer")))
(defmacro +hlissner-def-finder! (name dir)
"Define a pair of find-file and browse functions."