-
Open with Emacs in same window, and open as root: emacsclients scripts and .desktop files
Open with Emacs in same window
/usr/local/bin/myemacs:
… »#!/bin/bash # how many emacs? NUM_EMACS=$(emacsclient -e "(length (frame-list))" -a "") if [ $NUM_EMACS -le 1 ]; then emacsclient -c -e "(progn (select-frame-set-input-focus (selected-frame)) (find-file \"$@\"))" else emacsclient -e "(progn