Guest User

Untitled

a guest
Dec 10th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 2.12 KB | None | 0 0
  1. ;; ---------------------------
  2. ;; syrinx_'s .emacs file (2011)
  3. ;; ---------------------------
  4.  
  5. ;; default functions
  6. ;; -----------------
  7. (menu-bar-mode -1) ;; hides the menu bar
  8. (add-to-list 'load-path "~/.emacs.d/") ;; user load path
  9. (delete-selection-mode 1) ;; allows for "backspacing" a region
  10. (savehist-mode t) ;; persistent minibuffer
  11.  
  12. ;; this hides the toolbar and scrollbar if using X
  13. (when window-system
  14.   (tool-bar-mode -1)
  15.   (scroll-bar-mode -1))
  16.  
  17. ;; turns on line numbers (only in versions after 22; include linum.el if needed)
  18. (global-linum-mode 1)
  19.  
  20. ;; org mode
  21. (require 'org-install)
  22. (define-key global-map "\C-cl" 'org-store-link)
  23. (define-key global-map "\C-ca" 'org-agenda)
  24. (setq org-log-done t)
  25.  
  26. ;; php-mode
  27. (load "php-mode")
  28.  
  29. ;; pastebin
  30. (load "pastebin")
  31.  
  32. ;; default variables
  33. ;; -----------------
  34. (setq inhibit-startup-message t ;; turn off startup message
  35.       inhibit-startup-echo-area-message t ;; turn off echo area message
  36.       initial-scratch-message " ;; scratch..."
  37.       x-select-enable-clipboard t ;; enables X clipboard
  38.       completion-ignore-case t ;; ignore case in auto-completed text
  39.       message-log-max 1000 ;; default is 100
  40.       show-trailing-whitespace 1 ;; self explanatory
  41.       scroll-margin 0 ;; smooth sailing from here
  42.       scroll-conservatively 100000
  43.       scroll-up-aggressively 0 ;; no thanks
  44.       scroll-down-aggressively 0 ;; see above
  45.       compile-command "make") ;; default compile command
  46.      
  47. ;; default browser
  48. ;; ---------------
  49. (setq browse-url-browser-function ' browse-url-generic
  50.       browse-url-generic-program "chrome-browser") ;; sets default browser
  51.  
  52. ;; default auto-mode list
  53. ;; ----------------------
  54. (add-to-list 'auto-mode-alist '(".emacs" . emacs-lisp-mode)) ;; open emacs in lisp mode
  55. (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) ;; open *.org files in org mode
  56. (add-to-list 'auto-mode-alist '("README$" . org-mode)) ;; open README files in org mode
  57. (add-to-list 'auto-mode-alist '("\\.pl$" . cperl-mode)) ;; open .pl files in cperl mode
  58. (add-to-list 'auto-mode-alist '("\\.php$" . php-mode)) ;; open .php files in php mode '(pastebin-default-domain "zenspider.pastebin.com")
Add Comment
Please, Sign In to add comment