2015-06-06 06:40:33 -04:00
|
|
|
;;; my-commands.el
|
|
|
|
|
2015-12-11 16:51:04 -05:00
|
|
|
;; Emacs utilities
|
2015-06-15 09:10:36 +02:00
|
|
|
(exmap "acomp[ile]" 'narf:compile-autoloads)
|
|
|
|
(exmap "bcomp[ile]" 'narf:compile-el)
|
|
|
|
(exmap "echo" 'narf:echo)
|
2015-12-11 16:51:04 -05:00
|
|
|
|
|
|
|
;; Editing
|
|
|
|
(exmap "@" 'narf/evil-macro-on-all-lines)
|
|
|
|
(exmap "al[ign]" 'narf:align)
|
2015-06-15 09:10:36 +02:00
|
|
|
(exmap "en[ew]" 'narf:file-create)
|
2015-11-14 02:42:45 -05:00
|
|
|
(exmap "na[rrow]" 'narf:narrow) ; Narrow buffer to selection
|
2015-06-15 09:10:36 +02:00
|
|
|
(exmap "ref[actor]" 'emr-show-refactor-menu)
|
|
|
|
(exmap "retab" 'narf:whitespace-retab)
|
|
|
|
(exmap "settr[im]" 'narf:toggle-delete-trailing-whitespace)
|
|
|
|
(exmap "snip[pets]" 'narf:yas-snippets) ; snip[!]
|
2015-08-13 12:14:41 -04:00
|
|
|
(exmap "tsnip[pets]" 'narf:yas-file-templates) ; tsnip[!]
|
2015-12-11 16:51:04 -05:00
|
|
|
(exmap "wal[ign]" 'narf:whitespace-align)
|
|
|
|
(exmap "rec[ent]" 'narf:helm-recentf)
|
2015-11-17 02:07:24 -05:00
|
|
|
|
2015-12-11 16:51:04 -05:00
|
|
|
;; External resources
|
|
|
|
(exmap "dash" 'dash-at-point)
|
|
|
|
(exmap "http" 'httpd-start)
|
|
|
|
(exmap "re[gex]" 'narf:regex)
|
|
|
|
(exmap "repl" 'narf:repl)
|
2015-11-17 03:46:38 -05:00
|
|
|
(exmap "t[mux]" 'narf:send-to-tmux)
|
2015-12-09 01:17:08 -05:00
|
|
|
(exmap "t[mux]s" 'narf/tmux-split-window)
|
|
|
|
(exmap "t[mux]v" (λ (narf/tmux-split-window t)))
|
2015-12-11 16:51:04 -05:00
|
|
|
(exmap "t[mux]w" 'narf/tmux-new-window)
|
2015-12-09 01:17:08 -05:00
|
|
|
(exmap "tcd" 'narf:tmux-cd)
|
2015-12-11 16:51:04 -05:00
|
|
|
(exmap "x" 'narf:scratch-buffer)
|
|
|
|
;; GIT
|
|
|
|
(exmap "git[hub]" 'narf:github-browse-file)
|
2015-11-17 03:46:38 -05:00
|
|
|
|
2015-12-11 16:51:04 -05:00
|
|
|
;; Dealing with buffers
|
|
|
|
(exmap "k[ill]" 'kill-this-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 "l[ast]" 'narf:popup-last-buffer)
|
|
|
|
(exmap "m[sg]" 'narf:popup-messages)
|
|
|
|
|
|
|
|
;; 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 "cd" 'narf:cd)
|
|
|
|
(exmap "fi[nd]" 'narf:helm-swoop)
|
|
|
|
;; Project tools
|
|
|
|
(exmap "ma[ke]" 'narf:build)
|
|
|
|
;; File operations
|
|
|
|
(exmap "mv" 'narf:file-move)
|
|
|
|
(exmap "rm" 'narf:file-delete) ; rm[!]
|
|
|
|
|
|
|
|
;; Presentation/demo
|
|
|
|
(exmap "big" 'narf:toggle-big-mode)
|
|
|
|
(exmap "full[scr]" 'narf:toggle-fullscreen)
|
|
|
|
(exmap "fullw[rite]" 'narf:toggle-write-mode)
|
|
|
|
|
|
|
|
;; Org-mode
|
|
|
|
(exmap "cap[ture]" 'helm-org-capture-templates)
|
|
|
|
(exmap "org" 'narf/helm-org)
|
2015-11-30 16:47:31 -05:00
|
|
|
(exmap "cont[act]" 'narf:org-crm-contact)
|
|
|
|
(exmap "proj[ect]" 'narf:org-crm-project)
|
|
|
|
(exmap "invo[ice]" 'narf:org-crm-invoice)
|
|
|
|
|
2015-12-11 16:51:04 -05:00
|
|
|
;; Plugins
|
2015-06-15 09:10:36 +02:00
|
|
|
(after! flycheck
|
|
|
|
(exmap "er[rors]" (λ (flycheck-buffer) (flycheck-list-errors))))
|
2015-11-17 02:07:24 -05:00
|
|
|
|
2015-06-15 09:10:36 +02:00
|
|
|
(after! workgroups2
|
|
|
|
(exmap "sl[oad]" 'narf:load-session)
|
|
|
|
(exmap "ss[ave]" 'narf:save-session)
|
2015-12-10 20:44:31 -05:00
|
|
|
(exmap "wg" 'narf/workgroup-display)
|
|
|
|
(exmap "tab" 'narf/workgroup-display)
|
2015-11-08 17:57:41 -05:00
|
|
|
(exmap "tabn[ew]" 'narf:workgroup-new)
|
|
|
|
(exmap "tabr[ename]" 'narf:workgroup-rename)
|
2015-06-15 09:10:36 +02:00
|
|
|
(exmap "tabn[ext]" 'wg-switch-to-workgroup-right)
|
|
|
|
(exmap "tabp[rev]" 'wg-switch-to-workgroup-left)
|
|
|
|
(exmap "tabl[ast]" 'wg-switch-to-previous-workgroup)
|
2015-11-08 17:57:41 -05:00
|
|
|
(exmap "tabq[uit]" 'narf:workgroup-delete)
|
2015-06-15 09:10:36 +02:00
|
|
|
(exmap "k[ill]w" 'wg-kill-workgroup)
|
|
|
|
(exmap "k[ill]ow" 'narf:kill-other-workgroups))
|
2015-06-06 06:40:33 -04:00
|
|
|
|
|
|
|
(provide 'my-commands)
|
|
|
|
;;; my-commands.el ends here
|