bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit 9dc8e99d9938cecdaae60e320603b544a8235e39
parent 53041d52b2d2d2b4f72655312e4ae94a48d4e1f0
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue,  3 Mar 2020 14:56:24 +0300

start a server

Minit.org | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/init.org b/init.org @@ -119,6 +119,21 @@ Let's load a private file if it exists (when (file-exists-p private-file) (load-file private-file))))) #+END_SRC +** Starting the server +I usually use the graphical environment provided by Emacs, but +from time to time I need to launch emacsclien from the console. +I have a basic alias on my =~/.aliases= file like this. +#+BEGIN_SRC sh :tangle no +alias em="emacsclient -c -nw -a 'vim'" +#+END_SRC +This fallbacks to vim if the emacs server is unavailable. + +#+BEGIN_SRC emacs-lisp +(require 'server) +(or (server-running-p) + (server-start)) +#+END_SRC + * Packages Now we can continue by loading our packages, those are listed according