Emacs selected command, config and practice
This is a collection of things I found usefull regarding emacs. It will grow …
.emacs
Add those bellow in the file ~/.emacs
;; do not make backup files
(setq make-backup-files nil)
;; php syntax color
(load “php-mode”)
(add-to-list ‘auto-mode-alist
‘(“\\.php[34]?\\’\\|\\.phtml\\’” . php-mode))
X forwarding with ssh
ssh -X your.ssh.domain.com
~$emacs somefile
will start an gui emacs on your local computer. You can also set ForwardX11 to yes for enable X forwarding. This property can be found at /etc/ssh/ssh_config