My desktop emacs config is complecated, however I need a minimal config for emacs installed on ubuntu servers. This is my note of how to configure emacs on servers that works for me.
Emacs24
First, I need to get Emacs24 installed on ubuntu, which is not by default. This link Install Emacs 24 in Ubuntu is a great guide of how to install emacs 24. Here are the commands you need to type:
Ace Jump: Move your cursor to where you eyes are looking at.
Some other configs
12345678910111213141516171819202122232425262728
(global-visual-line-modet)(tool-bar-mode-1)(show-paren-modet)(menu-bar-mode-1)(setqinhibit-startup-messaget)(setq-defaultindent-tabs-modenil);; it's dangerous to keep backup files in the same directory on the server(setqbackup-directory-alist'(("."."~/.backup_emacs"))auto-save-file-name-transforms'((".*""~/.backup_emacs"t))backup-by-copyingt; Don't delink hardlinksversion-controlt; Use version numbers on backupsdelete-old-versionst; Automatically delete excess backupskept-new-versions20; how many of the newest versions to keepkept-old-versions5; and how many of the old);; configure paredit(add-hook'clojure-mode-hook(lambda ()(paredit-mode1)))(add-hook'emacs-lisp-mode-hook(lambda ()(paredit-mode1)));; auto complete for emacs lisp(setqtab-always-indent'complete)(add-to-list'completion-styles'initialst)(define-keyglobal-map(kbd"RET")'newline-and-indent);; ace jump mode(global-set-key(kbd"<ESC><ESC>")'ace-jump-mode)