Clean up
This commit is contained in:
parent
a4fd3f3be5
commit
b78d210ace
11 changed files with 71 additions and 82 deletions
|
@ -1,56 +1,57 @@
|
|||
;;; my-commands.el
|
||||
|
||||
;; Emacs utilities
|
||||
(exmap "acomp[ile]" 'narf:compile-autoloads)
|
||||
(exmap "acomp[ile]" 'narf:compile-autoloads) ; compile autoloads
|
||||
(exmap "bcomp[ile]" 'narf:compile-el)
|
||||
(exmap "echo" 'narf:echo)
|
||||
(exmap "minor" 'helm-describe-modes)
|
||||
(exmap "minor" 'helm-describe-modes) ; list minor modes
|
||||
|
||||
;; Editing
|
||||
(exmap "@" 'narf/evil-macro-on-all-lines)
|
||||
(exmap "al[ign]" 'narf:align)
|
||||
(exmap "en[ew]" 'narf:file-create)
|
||||
(exmap "na[rrow]" 'narf:narrow) ; Narrow buffer to selection
|
||||
(exmap "ref[actor]" 'emr-show-refactor-menu)
|
||||
(exmap "@" 'narf/evil-macro-on-all-lines) ; run macro on each line
|
||||
(exmap "al[ign]" 'narf:align) ; align by regexp
|
||||
(exmap "en[ew]" 'narf:file-create) ; open a blank buffer
|
||||
(exmap "na[rrow]" 'narf:narrow) ; narrow buffer to selection
|
||||
(exmap "ref[actor]" 'emr-show-refactor-menu) ; open emr menu
|
||||
(exmap "retab" 'narf:whitespace-retab)
|
||||
(exmap "settr[im]" 'narf:toggle-delete-trailing-whitespace)
|
||||
(exmap "snip[pets]" 'narf:yas-snippets) ; snip[!]
|
||||
(exmap "tsnip[pets]" 'narf:yas-file-templates) ; tsnip[!]
|
||||
(exmap "wal[ign]" 'narf:whitespace-align)
|
||||
(exmap "rec[ent]" 'narf:helm-recentf)
|
||||
(exmap "reo[rient]" 'narf/window-reorient)
|
||||
(exmap "snip[pets]" 'narf:yas-snippets) ; visit a snippet
|
||||
(exmap "tsnip[pets]" 'narf:yas-file-templates) ; visit a file template
|
||||
(exmap "wal[ign]" 'narf:whitespace-align) ; align spaces
|
||||
(exmap "rec[ent]" 'narf:helm-recentf) ; show recent files in helm
|
||||
(exmap "reo[rient]" 'narf/window-reorient) ; scroll all windows to left
|
||||
|
||||
;; External resources
|
||||
(exmap "dash" 'narf:dash)
|
||||
(exmap "http" 'httpd-start)
|
||||
(exmap "re[gex]" 'narf:regex)
|
||||
(exmap "repl" 'narf:repl)
|
||||
(exmap "t[mux]" 'narf:tmux)
|
||||
(exmap "t[mux]w" 'narf/tmux-new-window)
|
||||
(exmap "tcd" 'narf:tmux-cd)
|
||||
(exmap "dash" 'narf:dash) ; look up in Dash.app
|
||||
(exmap "http" 'httpd-start) ; start http server
|
||||
(exmap "re[gex]" 'narf:regex) ; open re-builder
|
||||
(exmap "repl" 'narf:repl) ; invoke or send to repl
|
||||
(exmap "t[mux]" 'narf:tmux) ; send to tmux
|
||||
(exmap "t[mux]w" 'narf/tmux-new-window) ; open new window in tmux
|
||||
(exmap "tcd" 'narf:tmux-cd) ; cd to default-directory in tmux
|
||||
(exmap "x" 'narf:send-to-scratch-or-org)
|
||||
;; GIT
|
||||
(exmap "br[owse]" 'narf:git-remote-browse)
|
||||
(exmap "br[owse]" 'narf:git-remote-browse) ; show file in github/gitlab
|
||||
|
||||
;; Dealing with buffers
|
||||
(exmap "k[ill]" 'narf/kill-real-buffer) ; Kill current buffer
|
||||
(exmap "k[ill]all" 'narf:kill-all-buffers) ; Kill all buffers (bang = in project)
|
||||
(exmap "k[ill]buried" 'narf:kill-buried-buffers) ; Kill all buried buffers (bang = in project)
|
||||
(exmap "k[ill]o" 'narf:kill-unreal-buffers)
|
||||
(exmap "k[ill]match" 'narf:kill-matching-buffers)
|
||||
(exmap "l[ast]" 'narf/popup-last-buffer)
|
||||
(exmap "m[sg]" 'narf/popup-messages)
|
||||
(exmap "k[ill]o" 'narf:kill-unreal-buffers) ; kill unreal buffers
|
||||
(exmap "k[ill]match" 'narf:kill-matching-buffers) ; kill buffers that match regexp
|
||||
(exmap "l[ast]" 'narf/popup-last-buffer) ; pop up last popup
|
||||
(exmap "m[sg]" 'narf/popup-messages) ; open *messages* in popup
|
||||
|
||||
;; Project navigation
|
||||
(exmap "a" 'helm-projectile-find-other-file)
|
||||
(exmap "ag" 'narf:helm-ag-search)
|
||||
(exmap "ag[cw]d" 'narf:helm-ag-search-cwd)
|
||||
(exmap "agr" 'narf:helm-ag-regex-search)
|
||||
(exmap "agr[cw]d" 'narf:helm-ag-regex-search-cwd)
|
||||
(exmap "a" 'helm-projectile-find-other-file) ; open alternate file
|
||||
(exmap "ag" 'narf:helm-ag-search) ; project text search
|
||||
(exmap "ag[cw]d" 'narf:helm-ag-search-cwd) ; current directory search
|
||||
(exmap "agr" 'narf:helm-ag-regex-search) ; project regex search
|
||||
(exmap "agr[cw]d" 'narf:helm-ag-regex-search-cwd) ; current directory regexp search
|
||||
(exmap "cd" 'narf:cd)
|
||||
(exmap "f[ind]" 'narf:helm-swoop)
|
||||
(exmap "f[ind]" 'narf:helm-swoop) ; in-file search
|
||||
;; Project tools
|
||||
(exmap "ma[ke]" 'narf:build)
|
||||
(exmap "build" 'narf:build)
|
||||
;; File operations
|
||||
(exmap "mv" 'narf:file-move)
|
||||
(exmap "rm" 'narf:file-delete) ; rm[!]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue