diff options
author | William Carroll <wpcarro@gmail.com> | 2019-03-08T18·15+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-03-08T18·15+0000 |
commit | c487b09d6a1b054c3912397ec6cdbabd58d35eb0 (patch) | |
tree | d0ecc5473f4225599fdc97fa5644553b60c3826f /configs/shared/zsh/dumping_grounds.zsh | |
parent | c0b8167c2c852394b1fcdfc06f949bd57321b352 (diff) |
Support i3wm and org-capture integration
Now this has been missing from my workflow for awhile.
Diffstat (limited to 'configs/shared/zsh/dumping_grounds.zsh')
-rw-r--r-- | configs/shared/zsh/dumping_grounds.zsh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configs/shared/zsh/dumping_grounds.zsh b/configs/shared/zsh/dumping_grounds.zsh index c2acc64564af..ae16bb78bfaa 100644 --- a/configs/shared/zsh/dumping_grounds.zsh +++ b/configs/shared/zsh/dumping_grounds.zsh @@ -9,6 +9,23 @@ dsh() { docker exec -it "${container}" "${cmd}" } +# Emacs +dired() { + # Opens either the `$(pwd)` or `$1` in Emacs's `dired`. + # Uses i3 to focus Emacs. + directory=${1:-$(pwd)} + echo $directory + emacsclient --eval "(dired \"$directory\")" && focus Emacs +} + +org_capture() { + # Spawns an Emacs frame running org-capture. + echo called + emacsclient --create-frame \ + --frame-parameters '(quote (name . "org-protocol-capture"))' \ + --eval '(org-capture)' +} + # Git conflicts() { # Edit git conflicts one-by-one in your favorite editor. |