Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; ---------------------------
- ;; syrinx_'s .emacs file (2011)
- ;; ---------------------------
- ;; default functions
- ;; -----------------
- (menu-bar-mode -1) ;; hides the menu bar
- (add-to-list 'load-path "~/.emacs.d/") ;; user load path
- (delete-selection-mode 1) ;; allows for "backspacing" a region
- (savehist-mode t) ;; persistent minibuffer
- ;; this hides the toolbar and scrollbar if using X
- (when window-system
- (tool-bar-mode -1)
- (scroll-bar-mode -1))
- ;; turns on line numbers (only in versions after 22; include linum.el if needed)
- (global-linum-mode 1)
- ;; org mode
- (require 'org-install)
- (define-key global-map "\C-cl" 'org-store-link)
- (define-key global-map "\C-ca" 'org-agenda)
- (setq org-log-done t)
- ;; php-mode
- (load "php-mode")
- ;; pastebin
- (load "pastebin")
- ;; default variables
- ;; -----------------
- (setq inhibit-startup-message t ;; turn off startup message
- inhibit-startup-echo-area-message t ;; turn off echo area message
- initial-scratch-message " ;; scratch..."
- x-select-enable-clipboard t ;; enables X clipboard
- completion-ignore-case t ;; ignore case in auto-completed text
- message-log-max 1000 ;; default is 100
- show-trailing-whitespace 1 ;; self explanatory
- scroll-margin 0 ;; smooth sailing from here
- scroll-conservatively 100000
- scroll-up-aggressively 0 ;; no thanks
- scroll-down-aggressively 0 ;; see above
- compile-command "make") ;; default compile command
- ;; default browser
- ;; ---------------
- (setq browse-url-browser-function ' browse-url-generic
- browse-url-generic-program "chrome-browser") ;; sets default browser
- ;; default auto-mode list
- ;; ----------------------
- (add-to-list 'auto-mode-alist '(".emacs" . emacs-lisp-mode)) ;; open emacs in lisp mode
- (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) ;; open *.org files in org mode
- (add-to-list 'auto-mode-alist '("README$" . org-mode)) ;; open README files in org mode
- (add-to-list 'auto-mode-alist '("\\.pl$" . cperl-mode)) ;; open .pl files in cperl mode
- (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