[emacs] Cleanup a bit the env var assignments

master
Jacopo De Simoi 3 years ago
parent 6f2ccfc6ba
commit 5f23e34ff5
  1. 51
      zshrc.org

@ -226,21 +226,31 @@ Underscore filename
} }
#+end_src #+end_src
*** emacs helpers :daily:pi: *** emacs helpers :daily:pi:
#+begin_src sh Here we take care of setting up the emacs workflow
SOLARIZED="true" **** Emacs aliases for the pi :pi:
export EMACS="emacsclient" #+begin_src sh
export EMACS_DEF_ARGUMENTS="--alternate-editor=emacs" export EMACS="emacsclient"
# Emacs stuff export EMACS_DEF_ARGUMENTS="--alternate-editor=emacs"
eca() #+end_src
{ **** specialized helper for the daily box :daily:
if [[ "$SSH_CONNECTION" != '' ]]; then #+begin_src sh
EMACS_ARGUMENTS="-t" export EMACS="/home/jacopods/.emacs.d/emacsclient-activities"
else export EMACS_DEF_ARGUMENTS=""
EMACS_ARGUMENTS="-n" #+end_src
fi **** Define the eca function :daily:pi:
$EMACS $EMACS_DEF_ARGUMENTS $EMACS_ARGUMENTS $@ #+begin_src sh
} # Emacs stuff
#+end_src SOLARIZED="true"
eca()
{
if [[ "$SSH_CONNECTION" != '' ]]; then
EMACS_ARGUMENTS="-t"
else
EMACS_ARGUMENTS="-n"
fi
$EMACS $EMACS_DEF_ARGUMENTS $EMACS_ARGUMENTS $@
}
#+end_src
**** magit :daily:pi: **** magit :daily:pi:
#+begin_src sh #+begin_src sh
magit() { magit() {
@ -251,7 +261,6 @@ Underscore filename
#+end_src #+end_src
**** mu4e + agenda :daily: **** mu4e + agenda :daily:
#+begin_src sh #+begin_src sh
μ() { μ() {
eca -e "(mu4e)" eca -e "(mu4e)"
} }
@ -264,12 +273,8 @@ Underscore filename
kill-emacs() { kill-emacs() {
eca -e "(kill-emacs)" eca -e "(kill-emacs)"
} }
#+end_src #+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: *** oh-my-zsh setup :daily:pi:android:
#+begin_src sh #+begin_src sh
# Path to your oh-my-zsh configuration. # Path to your oh-my-zsh configuration.
@ -386,8 +391,6 @@ further reference
*** TODO editor env variables :daily: *** TODO editor env variables :daily:
This needs to be diff'd among the versions This needs to be diff'd among the versions
#+begin_src sh #+begin_src sh
# editor stuff
export EDITOR="$EMACS -n" export EDITOR="$EMACS -n"
export VISUAL=$EDITOR export VISUAL=$EDITOR
export GIT_EDITOR=$EMACS export GIT_EDITOR=$EMACS

Loading…
Cancel
Save