Greg Newman avatar Greg Newman committed 683f737

fixing elpa clutter. moving todochiku's require to the end

Comments (0)

Files changed (3)

 
 ** Helpful Packages
 #+begin_src emacs-lisp
-(require 'org-install)
-(require 'org-babel-ruby)      ;; requires ruby, irb, ruby-mode, and inf-ruby
-(require 'org-babel-python)    ;; requires python, and python-mode
-(require 'org-babel-clojure)   ;; requires clojure, clojure-mode, swank-clojure and slime
-(if window-system (require 'org-mouse))
+  (require 'org-install)
+  (require 'org-babel-ruby)      ;; requires ruby, irb, ruby-mode, and inf-ruby
+  (require 'org-babel-python)    ;; requires python, and python-mode
+  (require 'org-babel-clojure)   ;; requires clojure, clojure-mode, swank-clojure and slime
+  (if window-system (require 'org-mouse))
 #+end_src
 
 ** Org-Mode Hook
 
 ** Requires
 #+begin_src emacs-lisp
-(require 'yasnippet)
-(require 'uniquify)
-(require 'grep-o-matic)
-(require 'mercurial)
-(require 'auto-complete)
-(require 'todochiku)
-(require 'dpaste)
-(require 'flymake)
-(require 'dpastede)
-(require 'font-lock)
-(require 'gist)
-(require 'growl)
-(require 'nav)
-(require 'saveplace)
-(require 'textile-mode)
-(require 'vernacular-time)
-
-'(blink-cursor-mode nil)
-'(desktop-base-file-name "emacs.desktop")
-'(desktop-path (quote ("~/.emacs.d" "~")))
-'(desktop-save t)
-'(desktop-save-mode t)
-
-;; IDO rules
-(require 'ido)
-(ido-mode t)
-(setq ido-enable-flex-matching t)
-
-(toggle-scroll-bar -1)
-;; no splash screen
-(setq inhibit-startup-message t)
-
-;; use UTF-8
-(prefer-coding-system 'utf-8)
-
-; Lines shouldn't be longer than 79 chars
-(setq fill-column 72)
-
-;; allow remote editing through transmit
-(setq backup-by-copying t) 
-
-;; make pretty
-(global-font-lock-mode 1)
-
-;; remove the beeping, it drives me nuts
-(setq ring-bell-function 'ignore)
- 
-;; shows current selected region
-(setq-default transient-mark-mode t)
-
-;; indent via spaces not tabs
-(setq-default indent-tabs-mode nil)
-
-;; titlebar = buffer unless filename
-(setq frame-title-format '(buffer-file-name "%f" ("%b")))
-
-;; show paired parenthasis
-(show-paren-mode 1)
- 
-;; TAB => 4*'\b'
-(setq default-tab-width 4)
-
-;; line numbers
-(global-linum-mode 1)
-(setq column-number-mode  t)
-
-;; turn off tool bar, and menu bar
-(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
-(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
-
-;; log the time of the things I have done
-(setq-default org-log-done t) 
-
-;; get rid of yes-or-no questions - y or n is enough
-(defalias 'yes-or-no-p 'y-or-n-p)
- 
-(setq uniquify-buffer-name-style 'reverse)
-(setq uniquify-separator "|")
-(setq uniquify-after-kill-buffer-p t) ; rename after killing uniquified
-(setq uniquify-ignore-buffers-re "^\\*") ; don't muck with special buffers
-
-;; disable line wrap
-(setq default-truncate-lines nil)
-
-;; make side by side buffers function the same as the main window
-(setq truncate-partial-width-windows nil)
-
-;; bury the buffer
-(global-set-key [f8] 'bury-buffer)
-
-;; ibuffer key
-(global-set-key (kbd "C-;") 'ibuffer)
-
-;; windmove bindings
-(when (fboundp 'windmove-default-keybindings)
-      (windmove-default-keybindings))
-
-;; Place Backup Files in Specific Directory
-;; Enable backup files.
-(setq make-backup-files t)
-
-;; Enable versioning with default values (keep five last versions, I think!)
-(setq version-control t)
-
-;; Save all backup file in this directory.
-(setq backup-directory-alist (quote ((".*" . "~/.emacs_backups/"))))
-
-; stolen from http://github.com/febuiles/dotemacs/tree/master/temp_files.el
-(defvar user-temporary-file-directory
-  (concat temporary-file-directory user-login-name "/"))
-(make-directory user-temporary-file-directory t)
-(setq backup-by-copying t)
-(setq backup-directory-alist
-      `(("." . ,user-temporary-file-directory)
-        (,tramp-file-name-regexp nil)))
-(setq auto-save-list-file-prefix
-      (concat user-temporary-file-directory ".auto-saves-"))
-(setq auto-save-file-name-transforms
-      `((".*" ,user-temporary-file-directory t)))
-
-(setq delete-old-versions t)
-
-(pc-selection-mode)
-
-(setq initial-frame-alist '((top . 50) 
-                            (left . 200) 
-                            (width . 120) 
-                            (height . 45)))
-
-;; clean out buffers except shell, agenda and org
-(defun restart ()
-  (interactive)
-  (let ((list (buffer-list)))
-    (while list
-      (let* ((buffer (car list))
-             (name (buffer-name buffer)))
-        (and (not (string-equal name "*shell*"))
-             (not (string-equal name "*Org Agenda*"))
-             (not (string-equal name "greg.org"))
-             (kill-buffer buffer)))
-      (setq list (cdr list)))))
-
-;; SavePlace
-(setq save-place-file "~/saveplace") ;; keep my ~/ clean
-(setq-default save-place t)                   ;; activate it for all buffers
-
-; CSS color values colored by themselves
-; http://xahlee.org/emacs/emacs_html.html
-(defvar hexcolour-keywords
-'(("#[abcdef[:digit:]]\\{6\\}"
-   (0 (put-text-property
-       (match-beginning 0)
-       (match-end 0)
-       'face (list :background 
-                   (match-string-no-properties 0)))))))
-
-(defun hexcolour-add-to-font-lock ()
-(font-lock-add-keywords nil hexcolour-keywords))
-(add-hook 'css-mode-hook 'hexcolour-add-to-font-lock)
-
-;; Change modifier key to meta
-(setq mac-command-modifier 'meta)
+  (require 'yasnippet)
+  (require 'uniquify)
+  (require 'grep-o-matic)
+  (require 'mercurial)
+  (require 'auto-complete)
+  (require 'dpaste)
+  (require 'flymake)
+  (require 'dpastede)
+  (require 'font-lock)
+  (require 'gist)
+  (require 'growl)
+  (require 'nav)
+  (require 'saveplace)
+  (require 'textile-mode)
+  (require 'vernacular-time)
+  (require 'todochiku)
+  
+  (blink-cursor-mode nil)
+  
+  ;; IDO rules
+  (require 'ido)
+  (ido-mode t)
+  (setq ido-enable-flex-matching t)
+  
+  (toggle-scroll-bar -1)
+  ;; no splash screen
+  (setq inhibit-startup-message t)
+  
+  ;; use UTF-8
+  (prefer-coding-system 'utf-8)
+  
+  ; Lines shouldn't be longer than 79 chars
+  (setq fill-column 72)
+  
+  ;; allow remote editing through transmit
+  (setq backup-by-copying t) 
+  
+  ;; make pretty
+  (global-font-lock-mode 1)
+  
+  ;; remove the beeping, it drives me nuts
+  (setq ring-bell-function 'ignore)
+   
+  ;; shows current selected region
+  (setq-default transient-mark-mode t)
+  
+  ;; indent via spaces not tabs
+  (setq-default indent-tabs-mode nil)
+  
+  ;; titlebar = buffer unless filename
+  (setq frame-title-format '(buffer-file-name "%f" ("%b")))
+  
+  ;; show paired parenthasis
+  (show-paren-mode 1)
+   
+  ;; TAB => 4*'\b'
+  (setq default-tab-width 4)
+  
+  ;; line numbers
+  (global-linum-mode 1)
+  (setq column-number-mode  t)
+  
+  ;; turn off tool bar, and menu bar
+  (if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
+  (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
+  
+  ;; log the time of the things I have done
+  (setq-default org-log-done t) 
+  
+  ;; get rid of yes-or-no questions - y or n is enough
+  (defalias 'yes-or-no-p 'y-or-n-p)
+   
+  (setq uniquify-buffer-name-style 'reverse)
+  (setq uniquify-separator "|")
+  (setq uniquify-after-kill-buffer-p t) ; rename after killing uniquified
+  (setq uniquify-ignore-buffers-re "^\\*") ; don't muck with special buffers
+  
+  ;; disable line wrap
+  (setq default-truncate-lines nil)
+  
+  ;; make side by side buffers function the same as the main window
+  (setq truncate-partial-width-windows nil)
+  
+  ;; bury the buffer
+  (global-set-key [f8] 'bury-buffer)
+  
+  ;; ibuffer key
+  (global-set-key (kbd "C-;") 'ibuffer)
+  
+  ;; windmove bindings
+  (when (fboundp 'windmove-default-keybindings)
+        (windmove-default-keybindings))
+  
+  ;; Place Backup Files in Specific Directory
+  ;; Enable backup files.
+  (setq make-backup-files t)
+  
+  ;; Enable versioning with default values (keep five last versions, I think!)
+  (setq version-control t)
+  
+  ;; Save all backup file in this directory.
+  (setq backup-directory-alist (quote ((".*" . "~/.emacs_backups/"))))
+  
+  ; stolen from http://github.com/febuiles/dotemacs/tree/master/temp_files.el
+  (defvar user-temporary-file-directory
+    (concat temporary-file-directory user-login-name "/"))
+  (make-directory user-temporary-file-directory t)
+  (setq backup-by-copying t)
+  (setq backup-directory-alist
+        `(("." . ,user-temporary-file-directory)
+          (,tramp-file-name-regexp nil)))
+  (setq auto-save-list-file-prefix
+        (concat user-temporary-file-directory ".auto-saves-"))
+  (setq auto-save-file-name-transforms
+        `((".*" ,user-temporary-file-directory t)))
+  
+  (setq delete-old-versions t)
+  
+  (pc-selection-mode)
+  
+  (setq initial-frame-alist '((top . 50) 
+                              (left . 200) 
+                              (width . 120) 
+                              (height . 45)))
+  
+  ;; clean out buffers except shell, agenda and org
+  (defun restart ()
+    (interactive)
+    (let ((list (buffer-list)))
+      (while list
+        (let* ((buffer (car list))
+               (name (buffer-name buffer)))
+          (and (not (string-equal name "*shell*"))
+               (not (string-equal name "*Org Agenda*"))
+               (not (string-equal name "greg.org"))
+               (kill-buffer buffer)))
+        (setq list (cdr list)))))
+  
+  ;; SavePlace
+  (setq save-place-file "~/saveplace") ;; keep my ~/ clean
+  (setq-default save-place t)                   ;; activate it for all buffers
+  
+  ; CSS color values colored by themselves
+  ; http://xahlee.org/emacs/emacs_html.html
+  (defvar hexcolour-keywords
+  '(("#[abcdef[:digit:]]\\{6\\}"
+     (0 (put-text-property
+         (match-beginning 0)
+         (match-end 0)
+         'face (list :background 
+                     (match-string-no-properties 0)))))))
+  
+  (defun hexcolour-add-to-font-lock ()
+  (font-lock-add-keywords nil hexcolour-keywords))
+  (add-hook 'css-mode-hook 'hexcolour-add-to-font-lock)
+  
+  ;; Change modifier key to meta
+  (setq mac-command-modifier 'meta)
 #+end_src
 
 ** Smex
     (load
      (expand-file-name "~/.emacs.d/elpa/package.el"))
   (package-initialize))
+
+
+;;; This was installed by package-install.el.
+;;; This provides support for the package system and
+;;; interfacing with ELPA, the package archive.
+;;; Move this code earlier if you want to reference
+;;; packages in your .emacs.
+(when
+    (load
+     (expand-file-name "~/.emacs.d/elpa/package.el"))
+  (package-initialize))
+
+
+;;; This was installed by package-install.el.
+;;; This provides support for the package system and
+;;; interfacing with ELPA, the package archive.
+;;; Move this code earlier if you want to reference
+;;; packages in your .emacs.
+(when
+    (load
+     (expand-file-name "~/.emacs.d/elpa/package.el"))
+  (package-initialize))
+
+
+;;; This was installed by package-install.el.
+;;; This provides support for the package system and
+;;; interfacing with ELPA, the package archive.
+;;; Move this code earlier if you want to reference
+;;; packages in your .emacs.
+(when
+    (load
+     (expand-file-name "~/.emacs.d/elpa/package.el"))
+  (package-initialize))
+
+
+;;; This was installed by package-install.el.
+;;; This provides support for the package system and
+;;; interfacing with ELPA, the package archive.
+;;; Move this code earlier if you want to reference
+;;; packages in your .emacs.
+(when
+    (load
+     (expand-file-name "~/.emacs.d/elpa/package.el"))
+  (package-initialize))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.