From 5f23e34ff56041564fdc14d1e8f1e5c6bd078a7a Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Mon, 2 Oct 2023 09:47:19 -0400 Subject: [PATCH] [emacs] Cleanup a bit the env var assignments --- zshrc.org | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/zshrc.org b/zshrc.org index ad997c1..b7feffb 100644 --- a/zshrc.org +++ b/zshrc.org @@ -226,21 +226,31 @@ Underscore filename } #+end_src *** emacs helpers :daily:pi: -#+begin_src sh - SOLARIZED="true" - export EMACS="emacsclient" - export EMACS_DEF_ARGUMENTS="--alternate-editor=emacs" - # Emacs stuff - eca() - { - if [[ "$SSH_CONNECTION" != '' ]]; then - EMACS_ARGUMENTS="-t" - else - EMACS_ARGUMENTS="-n" - fi - $EMACS $EMACS_DEF_ARGUMENTS $EMACS_ARGUMENTS $@ - } - #+end_src + Here we take care of setting up the emacs workflow +**** Emacs aliases for the pi :pi: + #+begin_src sh + export EMACS="emacsclient" + export EMACS_DEF_ARGUMENTS="--alternate-editor=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 +**** Define the eca function :daily:pi: + #+begin_src sh + # Emacs stuff + 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: #+begin_src sh magit() { @@ -251,7 +261,6 @@ Underscore filename #+end_src **** mu4e + agenda :daily: #+begin_src sh - μ() { eca -e "(mu4e)" } @@ -264,12 +273,8 @@ Underscore filename 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 + #+end_src + *** oh-my-zsh setup :daily:pi:android: #+begin_src sh # Path to your oh-my-zsh configuration. @@ -386,8 +391,6 @@ further reference *** TODO editor env variables :daily: This needs to be diff'd among the versions #+begin_src sh - # editor stuff - export EDITOR="$EMACS -n" export VISUAL=$EDITOR export GIT_EDITOR=$EMACS