General cleanup
This commit is contained in:
parent
2052fbba1c
commit
185ba75292
18 changed files with 793 additions and 704 deletions
|
@ -6,13 +6,18 @@
|
|||
;;; Custom commands
|
||||
;; Emacs utilities
|
||||
(ex! "echo" 'doom:echo)
|
||||
(ex! "minor" 'helm-describe-modes) ; list minor modes
|
||||
(ex! "minor" 'helm-describe-modes) ; list minor modes
|
||||
(ex! "bc[omp]" 'doom:byte-compile)
|
||||
(ex! "re[load]" 'doom-reload)
|
||||
(ex! "re[load]au" 'doom-reload-autoloads)
|
||||
|
||||
;; Quick mapping keys to commands, allows :nmap \m !make
|
||||
(ex! "imap" 'doom:imap)
|
||||
(ex! "mmap" 'doom:mmap)
|
||||
(ex! "nmap" 'doom:nmap)
|
||||
(ex! "omap" 'doom:omap)
|
||||
(ex! "vmap" 'doom:vmap)
|
||||
|
||||
;; Editing
|
||||
(ex! "@" 'doom/evil-macro-on-all-lines)
|
||||
(ex! "al[ign]" 'doom:align)
|
||||
|
@ -27,14 +32,20 @@
|
|||
(ex! "snip[pets]" 'doom:yas-snippets) ; open snippet
|
||||
(ex! "tsnip[pets]" 'doom:yas-file-templates) ; open file template
|
||||
(ex! "wal[ign]" 'doom:whitespace-align) ; align by spaces
|
||||
(ex! "date" 'doom:insert-date)
|
||||
|
||||
;; External resources
|
||||
(ex! "dash" 'doom:dash) ; look up in Dash.app
|
||||
(ex! "dash" 'doom:dash) ; look up in `helm-dash'
|
||||
(ex! "dashi" 'doom:dash-install) ; install docset
|
||||
(ex! "db" 'doom:db)
|
||||
(ex! "dbu[se]" 'doom:db-select)
|
||||
(ex! "http" 'httpd-start) ; start http server
|
||||
(ex! "re[gex]" 'doom:regex) ; open re-builder
|
||||
(ex! "repl" 'doom:repl) ; invoke or send to repl
|
||||
(ex! "t[mux]" 'doom:tmux) ; send to tmux
|
||||
(ex! "tcd" 'doom:tmux-cd) ; cd to default-directory in tmux
|
||||
(ex! "x" 'doom:scratch-or-org)
|
||||
|
||||
;; GIT
|
||||
(ex! "ga[dd]" 'doom/vcs-stage-hunk)
|
||||
(ex! "gbr[owse]" 'doom:git-remote-browse) ; show file in github/gitlab
|
||||
|
@ -48,21 +59,28 @@
|
|||
(ex! "k[ill]u" 'doom/kill-unreal-buffers) ; kill unreal buffers
|
||||
(ex! "l[ast]" 'doom/popup-last-buffer) ; pop up last popup
|
||||
(ex! "m[sg]" 'doom/popup-messages) ; open *messages* in popup
|
||||
|
||||
;; Project navigation
|
||||
(ex! "a" 'helm-projectile-find-other-file)
|
||||
(ex! "ag" 'doom:helm-ag-search)
|
||||
(ex! "ag[cw]d" 'doom:helm-ag-search-cwd)
|
||||
(ex! "cd" 'doom:cd)
|
||||
(ex! "se[arch]" 'doom:helm-swoop) ; in-file search
|
||||
|
||||
;; Project tools
|
||||
(ex! "build" 'doom:build)
|
||||
(ex! "debug" 'doom:debug)
|
||||
(ex! "er[rors]" 'doom/flycheck-errors)
|
||||
(ex! "ma[ke]" 'doom:build)
|
||||
|
||||
;; File operations
|
||||
(ex! "mv" 'doom:file-move)
|
||||
(ex! "rm" 'doom:file-delete)
|
||||
|
||||
;; Presentation/demo
|
||||
(ex! "big" 'big-mode)
|
||||
(ex! "full[scr]" 'doom:toggle-fullscreen)
|
||||
|
||||
;; Sessions/tabs
|
||||
(ex! "sl[oad]" 'doom:load-session)
|
||||
(ex! "ss[ave]" 'doom:save-session)
|
||||
|
@ -74,14 +92,11 @@
|
|||
(ex! "tabp[rev]" 'doom:switch-to-tab-left)
|
||||
(ex! "tabr[ename]" 'doom:tab-rename)
|
||||
(ex! "tabs" 'doom/tab-display)
|
||||
|
||||
;; Org-mode
|
||||
(ex! "att[ach]" 'doom:org-attach) ; attach file to org file
|
||||
(ex! "link" 'doom:org-link)
|
||||
(ex! "org" 'doom:org-helm-search) ; search org notes
|
||||
;; Plugins
|
||||
(ex! "er[rors]" 'doom/flycheck-errors)
|
||||
;; Debuggers
|
||||
(ex! "debug" 'doom:debug)
|
||||
|
||||
(provide 'my-commands)
|
||||
;;; my-commands.el ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue