Commits

Greg Newman committed d1ba869

minor fixes and color theme change/addition

  • Participants
  • Parent commits 669a297

Comments (0)

Files changed (4)

 which is also *implemented using* Org-mode and [[http://git-scm.com/][git]].
 
 ** Helpful Packages
+   :PROPERTIES:
+   :ID:       63C73386-FBC7-425C-9AEB-0C54C61429F7
+   :END:
 #+begin_src emacs-lisp
   (require 'org-install)
   (require 'org-babel-ruby)      ;; requires ruby, irb, ruby-mode, and inf-ruby
 #+end_src
 
 ** Org-Mode Hook
+   :PROPERTIES:
+   :ID:       950F795A-F1B7-49C3-A75B-7F9824D09D23
+   :END:
 The latest version of yasnippets doesn't play well with Org-mode, the
 following function allows these two to play nicely together
 #+begin_src emacs-lisp
 #+end_src
 
 ** Support for viewing images
+   :PROPERTIES:
+   :ID:       1DAC3FAB-C8B6-4C16-967A-3F7BF74BA0F9
+   :END:
 This allows for the viewing of images in-line in Org-mode documents.
 
 #+begin_src emacs-lisp
 #+results:
 : org-toggle-iimage-in-org
 ** Initializations
+   :PROPERTIES:
+   :ID:       197576A8-D39D-48D3-B2F2-EDAF2FBE56B4
+   :END:
 #+begin_src emacs-lisp
 (setq org-directory "~/hgfiles/org/")
 (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
 
 #+end_src
 ** Agenda
+   :PROPERTIES:
+   :ID:       8F48A4C9-1786-4522-A675-49C5B2D0C799
+   :END:
 #+begin_src emacs-lisp
 (setq org-agenda-files (quote ("~/hgfiles/org/client-projects.org"
                                "~/hgfiles/org/home-projects.org"
                   (800 1000 1200 1400 1600 1800 2000))))
 #+end_src
 ** Key Bindings
+   :PROPERTIES:
+   :ID:       1E9E8D38-9D3B-4936-A33A-30834022C9CB
+   :END:
 #+begin_src emacs-lisp
 ;; Standard key bindings
 (global-set-key "\C-cl" 'org-store-link)
 (global-set-key (kbd "C-s-<f12>") 'my-save-then-publish)
 #+end_src
 ** Drawers, Tags and Todos
+   :PROPERTIES:
+   :ID:       65B96A8C-04BA-413E-81B6-5358C7ADB58E
+   :END:
 #+begin_src emacs-lisp
 (setq org-drawers (quote ("PROPERTIES" "CLOCK" "LOGBOOK" "NOTES" "COMMENTS" "LINKS")))
 
 (setq org-agenda-tags-todo-honor-ignore-options t)
 #+end_src
 ** Clocking
+   :PROPERTIES:
+   :ID:       5A25A146-E856-4806-9A8F-344664093FDA
+   :END:
 #+begin_src emacs-lisp
 ;; Resume clocking tasks when emacs is restarted
 (setq org-clock-persistence-insinuate)
         (org-set-property "Effort" effort)))))
 #+end_src
 ** Reminder Config
+   :PROPERTIES:
+   :ID:       A7EA5F17-C05F-4A1E-A054-5A0815D03584
+   :END:
 #+begin_src emacs-lisp
 ;;
 ;; REMINDERS
 (run-at-time "24:01" nil 'bh/org-agenda-to-appt)
 #+end_src
 ** Remember
+   :PROPERTIES:
+   :ID:       97E037A4-0DAC-44BD-BB96-EBD47D6B770E
+   :END:
 #+begin_src emacs-lisp
 (org-remember-insinuate)
      (setq org-directory "~/hgfiles/org/")
 (setq org-refile-use-outline-path (quote file))
 #+end_src
 ** Warning and Save hooks
+   :PROPERTIES:
+   :ID:       029D4F32-A7FC-430B-832C-8E6210E30990
+   :END:
 #+begin_src emacs-lisp
 ;; set appt waring to 15 minutes prior to appointment
 (setq appt-message-warning-time 15)
 (run-at-time "00:59" 3600 'org-save-all-org-buffers)
 #+end_src
 ** Speed Commands
+   :PROPERTIES:
+   :ID:       8DD978AB-F815-4318-8287-CFB2669531E9
+   :END:
 #+begin_src emacs-lisp
 ;; set speed commands
 (setq org-use-speed-commands t)
 #+end_src
 ** Growl Config
+   :PROPERTIES:
+   :ID:       D382B7F1-FB5C-40DA-9667-F9D651D745DB
+   :END:
    Growl support is provided by todochiku
 #+begin_src emacs-lisp
 ;; use todochiku for growl notifications of events
       (todochiku-icon 'emacs))))
 #+end_src
 ** Mobile Org
+   :PROPERTIES:
+   :ID:       96F9B111-BF35-4266-BDEA-B9296C98EB3A
+   :END:
 #+begin_src emacs-lisp
 ;; MOBILE ORG
 (require 'org-mobile)
 (add-hook 'after-save-hook 'org-mobile-push)
 #+end_src
 ** Journaling
+   :PROPERTIES:
+   :ID:       3F4C1BE8-EC73-423A-B7B4-EA57520AC0E8
+   :END:
 #+begin_src emacs-lisp
 ;; journaling hack taken from
 ;; http://metajack.im/2009/01/01/journaling-with-emacs-orgmode/
 #+end_src
 
 ** Miscellaneous configs for org
+   :PROPERTIES:
+   :ID:       66F87B91-FB52-4373-8998-7104A11F4B2B
+   :END:
 #+begin_src emacs-lisp
 (defun my-custom-handler (data)
   (let ((content (org-protocol-split-data data t)))
 Support for anything minor and requires that should be global
 
 ** Requires
+   :PROPERTIES:
+   :ID:       740102DF-6648-4475-AAC7-70BA719F2B17
+   :END:
 #+begin_src emacs-lisp
   (require 'yasnippet)
   (require 'uniquify)
   
   ;; Change modifier key to meta
   (setq mac-command-modifier 'meta)
+
+  (global-set-key (kbd "M-RET") 'ns-toggle-fullscreen)
 #+end_src
 
 ** Smex
+   :PROPERTIES:
+   :ID:       493DBB10-F3EB-4B6B-BDCA-3AFB4721C4D6
+   :END:
 #+begin_src emacs-lisp
 (require 'smex)
 (smex-initialize)
 #+end_src
 
 ** Colors
+   :PROPERTIES:
+   :ID:       CBAA8DA5-354D-42C9-A61B-9C9CCEB46EC2
+   :END:
 #+begin_src emacs-lisp
 ;; color theme
 (require 'color-theme)
 (color-theme-initialize)
 
-(load-file "~/.emacs.d/src/color-theme/zenburn.el")
-(color-theme-zenburn)
+;(load-file "~/.emacs.d/src/color-theme/zenburn.el")
+;(color-theme-zenburn)
+(load-file "~/.emacs.d/src/color-theme/color-theme-railscasts.el")
+(color-theme-railscasts)
 (set-face-background 'modeline "DarkRed")
 #+end_src
 
 ** Highlight Line
+   :PROPERTIES:
+   :ID:       90C3F79D-6A4F-4192-A105-78C5BCF49D17
+   :END:
 #+begin_src emacs-lisp
 (require 'highlight-current-line)
  
 #+end_src
 
 ** Git
+   :PROPERTIES:
+   :ID:       A9AB81CF-8414-44C1-8819-99AEB2E3768C
+   :END:
 #+begin_src emacs-lisp
 ;; Add in git version control hooks
 (require 'vc-git)
   "Minor mode for incremental blame for git" t)
 #+end_src
 ** Browse Kill Ring
+   :PROPERTIES:
+   :ID:       F9550B3D-79B1-4CB7-86C4-516680E0D4EE
+   :END:
 #+begin_src emacs-lisp
 (require 'browse-kill-ring)
 (browse-kill-ring-default-keybindings)
 #+end_src
 ** Lorem Ipsum
+   :PROPERTIES:
+   :ID:       BAE663A0-06B0-4EDB-9055-182409F94333
+   :END:
 #+begin_src emacs-lisp
 ;; Add in lorem-ipsum
 (require 'lorem-ipsum)
 				  Lorem-ipsum-list-end "</ul>\n")))
 #+end_src
 ** Shell
+   :PROPERTIES:
+   :ID:       EA8D1DFE-7F22-461F-8A5C-109F57F2920C
+   :END:
 #+begin_src emacs-lisp
 ;; multi-term
 (require 'multi-term)
 (setq multi-term-program "/bin/bash") 
 #+end_src
 ** Restructured Text
+   :PROPERTIES:
+   :ID:       F10D7F4E-64F5-4437-BAE8-790F34C8F614
+   :END:
 #+begin_src emacs-lisp
 (setq auto-mode-alist
       (append '(("\\.txt$" . rst-mode)
                 ("\\.rest$" . rst-mode)) auto-mode-alist))
 #+end_src
 ** Quiting Emacs
+   :PROPERTIES:
+   :ID:       DD878440-AB0B-479A-B7B8-6B999D6075B3
+   :END:
 #+begin_src emacs-lisp
 (setq confirm-kill-emacs
       (lambda (e)
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
  '(highlight-current-line-face ((t (:background "#333333")))))
+;;; 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.
     (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))
+
+
+;;; 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))

src/color-theme/color-theme-railscasts.el

+;; Railscasts color theme for Emacs.
+;;
+;; To use add the following to your .emacs file:
+;;
+;; (require 'color-theme)
+;; (color-theme-initialize)
+;; (load-file "~/.emacs.d/site-lisp/themes/color-theme-railscasts.el")
+;; (color-theme-railscasts)
+;;
+;; MIT License Copyright (c) 2009 Oleg Shaldybin <oleg.shaldybin@gmail.com>
+;; Inspired by the brilliant Railscasts theme for TextMate
+;;
+
+(defun color-theme-railscasts ()
+  (interactive)
+  (color-theme-install
+   '(color-theme-railscasts
+     ((background-color . "#232323")
+      (background-mode . dark)
+      (cursor-color . "#5A647E")
+      (foreground-color . "#E6E1DC"))
+     (default ((t (nil))))
+     (bold ((t (:bold t))))
+     (bold-italic ((t (:italic t :bold t))))
+     (fringe ((t (:background "#232323"))))
+     (font-lock-builtin-face ((t (:foreground "#D0D0FF"))))
+     (font-lock-comment-face ((t (:foreground "#BC9458" :italic t))))
+     (font-lock-constant-face ((t (:foreground "#6D9CBE"))))
+     (font-lock-doc-string-face ((t (:foreground "#A5C261"))))
+     (font-lock-function-name-face ((t (:foreground "#FFC66D"))))
+     (font-lock-keyword-face ((t (:foreground "#CC7833"))))
+     (font-lock-preprocessor-face ((t (:foreground "#CC7833"))))
+     (font-lock-reference-face ((t (:foreground "LightSteelBlue"))))
+     (font-lock-string-face ((t (:foreground "#A5C261"))))
+     (font-lock-type-face ((t (:foreground "white"))))
+     (font-lock-variable-name-face ((t (:foreground "LightSteelBlue"))))
+     (font-lock-warning-face ((t (:foreground "Pink"))))
+     (paren-face-match-light ((t (:foreground "#FFC66D" :background "#555577"))))
+     (highlight ((t (:background "darkolivegreen"))))
+     (italic ((t (:italic t))))
+     (modeline ((t (:background "#A5BAF1" :foreground "black"))))
+     (modeline-buffer-id ((t (:background "#A5BAF1" :foreground 
+                                          "black"))))
+     (modeline-mousable ((t (:background "#A5BAF1" :foreground 
+                                         "black"))))
+     (modeline-mousable-minor-mode ((t (:background
+                                        "#A5BAF1" :foreground "black"))))
+     (region ((t (:background "#555577"))))
+     (primary-selection ((t (:background "#555577"))))
+     (isearch ((t (:background "#555555"))))
+     (zmacs-region ((t (:background "#555577")))) 
+     (secondary-selection ((t (:background "darkslateblue")))) 
+     (flymake-errline ((t (:background "LightSalmon" :foreground 
+                                       "black")))) 
+     (flymake-warnline ((t (:background "LightSteelBlue" :foreground 
+                                        "black"))))
+     (underline ((t (:underline t)))) 
+     (minibuffer-prompt ((t (:bold t :foreground "#FF6600")))))))