Difference between revisions of "Emacs notes"
Line 1: | Line 1: | ||
== '''How to open new files in already open Emacs window''' (using gnuserv) == |
|||
http://www.debian-administration.org/articles/257 |
http://www.debian-administration.org/articles/257 |
||
Shortcut: |
|||
* '''Pretty Emacs font''' (instead of the built in) |
|||
apt-get install gnuserv |
|||
Add to your .emacs configuration file the following: |
|||
;; |
|||
;; Start GNUServe process when starting up. This lets us send new files |
|||
;; to previously spawned emacs process. |
|||
;; |
|||
(load "gnuserv-compat") |
|||
(load-library "gnuserv") |
|||
(gnuserv-start) |
|||
;; When loading files reuse existing frames. |
|||
(setq gnuserv-frame (car (frame-list))) |
|||
;; Stop annoying prompt on kill buffer but member of gnuserv |
|||
(setq kill-buffer-query-functions nil) |
|||
Create a shortcut script to call emacs and alias emacs command with this: |
|||
#!/bin/sh |
|||
# ~/bin/emacs |
|||
# "apt-get install lsof" - if you're missing "lsof". |
|||
lsof /usr/bin/emacs-snapshot | grep $USER >/dev/null 2>&1 |
|||
if [ "$?" -eq "1" ]; then |
|||
/usr/bin/emacs-snapshot $* & |
|||
else |
|||
/usr/bin/gnuclient $* & |
|||
fi |
|||
== '''Pretty fonts for Emacs editor''' == |
|||
How to replace built-in emacs fonts. |
|||
http://peadrop.com/blog/2007/01/06/pretty-emacs/ |
http://peadrop.com/blog/2007/01/06/pretty-emacs/ |
||
Revision as of 12:52, 2 November 2009
How to open new files in already open Emacs window (using gnuserv)
http://www.debian-administration.org/articles/257
Shortcut:
apt-get install gnuserv
Add to your .emacs configuration file the following:
;; ;; Start GNUServe process when starting up. This lets us send new files ;; to previously spawned emacs process. ;; (load "gnuserv-compat") (load-library "gnuserv") (gnuserv-start) ;; When loading files reuse existing frames. (setq gnuserv-frame (car (frame-list))) ;; Stop annoying prompt on kill buffer but member of gnuserv (setq kill-buffer-query-functions nil)
Create a shortcut script to call emacs and alias emacs command with this:
#!/bin/sh # ~/bin/emacs # "apt-get install lsof" - if you're missing "lsof". lsof /usr/bin/emacs-snapshot | grep $USER >/dev/null 2>&1 if [ "$?" -eq "1" ]; then /usr/bin/emacs-snapshot $* & else /usr/bin/gnuclient $* & fi
Pretty fonts for Emacs editor
How to replace built-in emacs fonts. http://peadrop.com/blog/2007/01/06/pretty-emacs/
Shorcut:
sudo aptitude update sudo aptitude install emacs-snapshot emacs-snapshot-el echo "Emacs.font: Monospace-10" >> ~/.Xresources xrdb -merge ~/.Xresources
Note, if you get the "No fonts match `Monospace-10'" message, make sure you are running the emacs-snapshot and not your previous emacs version.