From: Andreas Gerler Date: Wed, 27 Jan 2016 13:23:12 +0000 (+0100) Subject: bba.org: added some hints for shell aliases. X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=a1cc35555267635bf7381620a4d9f3effd850283;p=emacsconfig.git bba.org: added some hints for shell aliases. --- diff --git a/bba.org b/bba.org index 3a948132..27f0fa33 100644 --- a/bba.org +++ b/bba.org @@ -69,6 +69,14 @@ If you are in need enable debugging: #+END_SRC +Some aliases you might want to set in your bash to talk to your Emacs server: + +#+BEGIN_SRC sh :tangle no + alias e='emacsclient -n -a emacs' + alias magit='emacsclient -n -e "(magit-status \"$(pwd)\")"' + alias eshell='emacsclient -n -e "(eshell-client)"' +#+END_SRC + * set environment variables on osx [2015-07-16 Thu 19:10] diff --git a/snippets/org-mode/srcsh b/snippets/org-mode/srcsh index 011d3d0c..9c61ff5e 100644 --- a/snippets/org-mode/srcsh +++ b/snippets/org-mode/srcsh @@ -4,6 +4,6 @@ # If you want to reference the output in other src blocks you need a name. # -- ${1:#+NAME: $2} -#+BEGIN_SRC sh ${3::session ${4:client}} :cache ${5:$$(yas-choose-value '("yes" "no"))} :results ${6:$$(yas-choose-value '("table" "list" "verbatim drawer"))} -$0 +#+BEGIN_SRC sh ${3::session ${4:client}} :cache ${5:$$(yas-choose-value '("yes" "no"))} :results ${6:$$(yas-choose-value '("verbatim drawer" "table" "list"))} + $0 #+END_SRC \ No newline at end of file