Support i3wm and org-capture integration
Now this has been missing from my workflow for awhile.
This commit is contained in:
parent
c0b8167c2c
commit
c487b09d6a
3 changed files with 49 additions and 11 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue