Created
April 23, 2010 14:04
-
-
Save avdi/376568 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export EDITOR="/home/avdi/share/bin/emacs-newwindow" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Useful options: | |
# -c: Create a new window | |
# -a: alternate editor. Empty string tells it to start emacs in daemon mode. | |
# -n: No-wait; exit emacsclient immediately after sending file to emacs | |
exec /usr/bin/emacsclient.emacs-snapshot -c -a "" $* | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;; Start either gnuserv or emacsserver for external access | |
(if (and (or | |
(eq 'windows-nt system-type) | |
(featurep 'xemacs)) | |
(locate-library "gnuserv") | |
(locate-file "gnuserv" exec-path '(".exe" ""))) | |
(progn (require 'gnuserv) | |
(gnuserv-start)) | |
(when (not (eq 'windows-nt system-type)) (server-start))) | |
;; Start up edit-server for Google Chrome Emacs integration | |
(if (and (daemonp) (locate-library "edit-server")) | |
(progn | |
(require 'edit-server) | |
(edit-server-start))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment