]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
bba.org: added some hints for shell aliases.
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 27 Jan 2016 13:23:12 +0000 (14:23 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 27 Jan 2016 13:23:12 +0000 (14:23 +0100)
bba.org
snippets/org-mode/srcsh

diff --git a/bba.org b/bba.org
index 3a948132e8ddf8a6c9d7384421de0a902b4f9262..27f0fa335435f490ca028cccb295b50aac113689 100644 (file)
--- 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]
 
index 011d3d0c57d359d475653d6172095240371fc5c6..9c61ff5e791156ec53a721a0f9e40b3542796b9e 100644 (file)
@@ -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