Differentiate between emacs helpers for different boxes

master
Jacopo De Simoi 4 years ago
parent db2fbeadf9
commit 9a2ad83e59
  1. 25
      zshrc.org

@ -53,7 +53,7 @@ Each environment has slightly different setups, which will be tangled
to different files according to the function `org-tags-to-filenames',
defined in the previous section.
*** Include :daily:pi:android:
*** Include :daily:android:
First, include a script that sets a number of confidential data (e.g. API keys and such)
#+begin_src sh
source ~/.config/confidential.sh
@ -206,11 +206,11 @@ BIG FAT WARNING: this needs to specify an actual file as a destination
}
#+end_src
*** emacs helpers :daily:
*** emacs helpers :daily:pi:
#+begin_src sh
SOLARIZED="true"
export EMACS="/home/jacopods/.emacs.d/emacsclient-activities"
export EMACS="emacsclient"
export EMACS_DEF_ARGUMENTS="--alternate-editor=emacs"
# Emacs stuff
eca()
{
@ -219,20 +219,24 @@ BIG FAT WARNING: this needs to specify an actual file as a destination
else
EMACS_ARGUMENTS="-n"
fi
$EMACS $EMACS_ARGUMENTS $@
$EMACS $EMACS_DEF_ARGUMENTS $EMACS_ARGUMENTS $@
}
#+end_src
**** magit :daily:pi:
#+begin_src sh
magit() {
# TODO: add parameter just in case
eca -e "(magit-status \"$(pwd)\")"
}
bindkey -s '^X^G' 'magit\n'
#+end_src
**** mu4e + agenda :daily:
#+begin_src sh
μ() {
eca -e "(mu4e)"
}
bindkey -s '^X^G' 'magit\n'
agenda() {
# TODO: add parameter just in case
eca -e "(org-agenda-list)"
@ -241,6 +245,11 @@ BIG FAT WARNING: this needs to specify an actual file as a destination
kill-emacs() {
eca -e "(kill-emacs)"
}
#+end_src
**** specialized helper for the daily box :daily:
#+begin_src sh
export EMACS="/home/jacopods/.emacs.d/emacsclient-activities"
export EMACS_DEF_ARGUMENTS=""
#+end_src
*** oh-my-zsh setup :daily:pi:android:

Loading…
Cancel
Save