Advertisement
timotheosh

.emacs

Mar 24th, 2011
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 1.32 KB | None | 0 0
  1. ; Email and user's name.
  2. (setq user-mail-address "foo@bar.com")
  3. (setq user-full-name "Tim Hawes")
  4.  
  5. ; Display clock and line and column numbers.
  6. (display-time)
  7. (line-number-mode 1)
  8. (column-number-mode 1)
  9.  
  10. (global-font-lock-mode t)
  11. (setq font-lock-maximum-size nil)
  12.  
  13. ;; Use this for remote so I can specify command line arguments
  14. (defun remote-term (new-buffer-name cmd &rest switches)
  15.   (setq term-ansi-buffer-name (concat "*" new-buffer-name "*"))
  16.   (setq term-ansi-buffer-name (generate-new-buffer-name term-ansi-buffer-name))
  17.   (setq term-ansi-buffer-name (apply 'make-term term-ansi-buffer-name cmd nil switches))
  18.   (set-buffer term-ansi-buffer-name)
  19.   (term-mode)
  20.   (term-char-mode)
  21.   (term-set-escape-char ?\C-x)
  22.   (switch-to-buffer term-ansi-buffer-name))
  23. ;; You can then define a new function in your init file for each host you frequently visit with it’s own buffer name and connection parameters:
  24.  
  25. (defun open-hyde ()
  26.   (interactive)
  27.   (remote-term "Hyde" "ssh" "hawet@hyde.rtp.netapp.com"))
  28.  
  29.  
  30. ;(setq load-path
  31. ;      (append "/usr/share/emacs/site-lisp"
  32. ;              "/usr/local/share/emacs/site-site"
  33. ;              "/home/thawes/.emacs.d"
  34. ;              load-path))
  35. (add-to-list 'load-path (expand-file-name "~/.emacs.d"))
  36. (load-library "autotools")
  37. (load-library "colors")
  38. (load-library "keys")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement