Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 140fdc6
Showing
511 changed files
with
115,229 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
vendor/elpa/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
75 ryan Ryan <ryan@localhost> Wed Jan 3 23:04:47 2007 | ||
75 ryan Ryan <ryan@localhost> Wed Jan 3 23:04:47 2007 | ||
13 ryan Ryan <ryan@Dissident> Thu Feb 1 21:30:59 2007 | ||
13 ryan Ryan <ryan@Dissident> Thu Feb 1 21:30:59 2007 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,234 @@ | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;; Ryan McGuire's Emacs Environment | ||
;; www.EnigmaCurry.com | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
|
||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;; Library Paths | ||
;; Note: I like to keep every emacs library underneath | ||
;; ~/.emacs.d and I shun loading them from the system | ||
;; paths. This makes it easier to use this config on | ||
;; multiple systems. | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(add-to-list 'load-path "~/.emacs.d") | ||
;Add all top-level subdirectories of .emacs.d to the load path | ||
(progn (cd "~/.emacs.d") | ||
(normal-top-level-add-subdirs-to-load-path)) | ||
;I like to keep third party libraries seperate in ~/.emacs.d/vendor | ||
(add-to-list 'load-path "~/.emacs.d/vendor") | ||
(progn (cd "~/.emacs.d/vendor") | ||
(normal-top-level-add-subdirs-to-load-path)) | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;ELPA package manager | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-elpa") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Libraries to autoload that don't (yet) have any of my | ||
;;customizations | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(require 'lorem-ipsum) | ||
(require 'column-marker) | ||
(require 'dired-single) | ||
(require 'pair-mode) | ||
(require 'pager) | ||
(require 'twit) | ||
(require 'ledger) | ||
;; Ever since upgrading to Gutsy, ECB is broken | ||
;(require 'ecb) | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Passwords | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-passwords") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Some misc functions that should be moved somewhere more logical | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-functions") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Visual Niceties | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-visual-nicities") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Jabber | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-jabber") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Ryan's global keybindings and behaviour | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-keyboard") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Ryan's Master Tab Completion | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
; Some day.... | ||
;(load-library "ryan-tab-complete") | ||
; for now: | ||
(require 'yasnippet) | ||
(yas/initialize) | ||
(yas/load-directory "~/.emacs.d/snippets") | ||
(global-set-key (kbd "TAB") 'yas/expand) | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Shortcuts | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-shortcuts") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;CEDET | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-cedet") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Python mode | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-python") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;W3M mode | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-w3m") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Dired mode | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-dired") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Lisp mode | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-lisp") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Java/Javascript | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-java") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Groovy | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-groovy") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;CSharp | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-csharp") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;NXML mode | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-nxml") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Abbrev mode | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-abbrev") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Shell mode | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-shell") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;; Mako mode | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-mako") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;; ERC mode | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-erc") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Org Mode | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-org") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Misc stuff | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-misc") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Mac OSX stuff | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-OSX") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;EasyPG stuff | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-easypg") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Wanderlust stuff | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-wanderlust") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Mew stuff | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-mew") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;NXHTML mode - HTML, PHP etc | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;(load-library "ryan-nxhtml") | ||
;This thing has problems. It screws up syntax highlighting in | ||
;unrelated modes.. disabled for now. | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Ryan's Pymacs extensions | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-pymacs-extensions") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Ansi-term stuff | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-ansi-term") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;CUA mode (rectangular selections) | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-cua-mode") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Lua mode | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-library "ryan-lua-mode") | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Startup gnus after loading other things | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;(gnus) | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;;Custmoized Settings | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(custom-set-variables | ||
;; custom-set-variables was added by Custom. | ||
;; If you edit it by hand, you could mess it up, so be careful. | ||
;; Your init file should contain only one such instance. | ||
;; If there is more than one, they won't work right. | ||
'(bbdb-file "~/.emacs.private/dot-bbdb") | ||
'(ecb-layout-name "left9") | ||
'(ecb-maximize-ecb-window-after-selection t) | ||
'(ecb-options-version "2.32") | ||
'(ecb-source-path (quote (("/" "/")))) | ||
'(ecb-tip-of-the-day nil) | ||
'(ecb-windows-width 0.2) | ||
'(erc-beep-match-types (quote (current-nick keyword))) | ||
'(erc-default-sound "/home/ryan/.emacs.d/sounds/combeep4a.wav") | ||
'(erc-echo-timestamps t) | ||
'(erc-hide-timestamps t) | ||
'(erc-keywords (quote ("Enigma"))) | ||
'(erc-match-mode t) | ||
'(erc-modules (quote (button completion fill irccontrols log netsplit noncommands readonly ring scrolltobottom services smiley track))) | ||
'(erc-services-mode t) | ||
'(erc-sound-mode t) | ||
'(erc-sound-path (quote ("/home/ryan/.emacs.d/sounds"))) | ||
'(erc-stamp-mode t) | ||
'(erc-user-full-name "Ryan McGuire") | ||
'(fill-column 81) | ||
'(gnus-article-sort-functions (quote ((not gnus-article-sort-by-date)))) | ||
'(gnus-thread-sort-functions (quote ((not gnus-thread-sort-by-date)))) | ||
'(jabber-alert-info-message-hooks (quote (jabber-info-display))) | ||
'(jabber-alert-presence-hooks nil) | ||
'(jabber-auto-reconnect t) | ||
'(jabber-backlog-number 100) | ||
'(jabber-chatstates-confirm nil) | ||
'(jabber-global-history-filename "~/.emacs.d/jabber_global_message_log") | ||
'(jabber-history-dir "~/.emacs.d/jabber-history") | ||
'(jabber-history-enabled t) | ||
'(jabber-use-global-history nil) | ||
'(jde-complete-function (quote jde-complete-in-line)) | ||
'(jde-jdk (quote ("1.6.0"))) | ||
'(jde-jdk-registry (quote (("1.6.0" . "/etc/opt/java")))) | ||
'(jde-sourcepath (quote ("/etc/opt/java/src" "$SDN_ROOT/src/java/"))) | ||
'(mew-rc-file "~/.emacs.d/dot-mew.el" t) | ||
'(mouse-wheel-mode t) | ||
'(nxhtml-skip-welcome t) | ||
'(paren-match-face (quote paren-face-match-light)) | ||
'(paren-sexp-mode t) | ||
'(svn-status-hide-unmodified t) | ||
'(svn-status-verbose nil) | ||
'(twit-mode t) | ||
'(user-mail-address "ryan@enigmacurry.com") | ||
'(w3m-default-display-inline-images t)) | ||
(custom-set-faces | ||
;; custom-set-faces was added by Custom. | ||
;; If you edit it by hand, you could mess it up, so be careful. | ||
;; Your init file should contain only one such instance. | ||
;; If there is more than one, they won't work right. | ||
'(twit-title-face ((t (:background "gray15" :underline nil)))) | ||
'(twit-zebra-1-face ((t (:background "gray0" :foreground "SlateBlue1")))) | ||
'(twit-zebra-2-face ((t (:background "gray16" :foreground "white"))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(require 'cl) | ||
|
||
(defun euler-p-001 () | ||
"Find the sum of all the multiples of 3 or 5 below 1000." | ||
(loop with result = 0 | ||
for i from 1 to 999 | ||
do | ||
(progn | ||
(if (or (= (% i 3) 0) | ||
(= (% i 5) 0)) | ||
(incf result i))) | ||
finally | ||
(return result))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;; Mac OSX customizations | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(normal-erase-is-backspace-mode t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
;; Change the abbreviation table on the fly depending on mode | ||
;; as well as if we are in a comment or quoted string | ||
(require 'pabbrev) | ||
(add-hook 'pre-abbrev-expand-hook 'abbrev-table-change) | ||
(defun abbrev-table-change (&optional args) | ||
(setq local-abbrev-table | ||
(if (eq major-mode 'jde-mode) | ||
(if (jde-parse-comment-or-quoted-p) | ||
text-mode-abbrev-table | ||
java-mode-abbrev-table) | ||
(if (eq major-mode 'python-mode) | ||
(if (py-in-literal) | ||
text-mode-abbrev-table | ||
python-mode-abbrev-table) | ||
) | ||
) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(require 'term) | ||
|
||
(defun visit-ansi-term () | ||
"If the current buffer is: | ||
1) a running ansi-term named *ansi-term*, rename it. | ||
2) a stopped ansi-term, kill it and create a new one. | ||
3) a non ansi-term, go to an already running ansi-term | ||
or start a new one while killing a defunt one" | ||
(interactive) | ||
(let ((is-term (string= "term-mode" major-mode)) | ||
(is-running (term-check-proc (buffer-name))) | ||
(term-cmd "/bin/bash") | ||
(anon-term (get-buffer "*ansi-term*"))) | ||
(if is-term | ||
(if is-running | ||
(if (string= "*ansi-term*" (buffer-name)) | ||
(call-interactively 'rename-buffer) | ||
(if anon-term | ||
(switch-to-buffer "*ansi-term*") | ||
(ansi-term term-cmd))) | ||
(kill-buffer (buffer-name)) | ||
(ansi-term term-cmd)) | ||
(if anon-term | ||
(if (term-check-proc "*ansi-term*") | ||
(switch-to-buffer "*ansi-term*") | ||
(kill-buffer "*ansi-term*") | ||
(ansi-term term-cmd)) | ||
(ansi-term term-cmd))))) | ||
(global-set-key (kbd "<f2>") 'visit-ansi-term) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
;; CEDET | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
(load-file "~/.emacs.d/vendor/cedet-1.0pre4/common/cedet.el") | ||
;;make all the 'semantic.cache' files go somewhere sane | ||
(setq semanticdb-default-save-directory "~/emacs-meta/semantic.cache/") | ||
;; Enabling various SEMANTIC minor modes. See semantic/INSTALL for more ideas. | ||
;; Select one of the following | ||
;(semantic-load-enable-code-helpers) | ||
;; (semantic-load-enable-guady-code-helpers) | ||
;; (semantic-load-enable-excessive-code-helpers) | ||
;; Enable this if you develop in semantic, or develop grammars | ||
;; (semantic-load-enable-semantic-debugging-helpers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
;;; Ryan's color theme. | ||
;;; Based on color-theme-tango by danranx. | ||
(defun color-theme-ryan () | ||
"A color theme based on Tango Palette." | ||
(interactive) | ||
(color-theme-install | ||
'(color-theme-tango | ||
((background-color . "gray7") | ||
(background-mode . dark) | ||
(border-color . "#888a85") | ||
(cursor-color . "#fce94f") | ||
(foreground-color . "#eeeeec") | ||
(mouse-color . "#8ae234")) | ||
((help-highlight-face . underline) | ||
(ibuffer-dired-buffer-face . font-lock-function-name-face) | ||
(ibuffer-help-buffer-face . font-lock-comment-face) | ||
(ibuffer-hidden-buffer-face . font-lock-warning-face) | ||
(ibuffer-occur-match-face . font-lock-warning-face) | ||
(ibuffer-read-only-buffer-face . font-lock-type-face) | ||
(ibuffer-special-buffer-face . font-lock-keyword-face) | ||
(ibuffer-title-face . font-lock-type-face)) | ||
(border ((t (:background "#888a85")))) | ||
(fringe ((t (:background "grey10")))) | ||
(mode-line ((t (:foreground "#eeeeec" :background "#555753")))) | ||
(region ((t (:background "#555753")))) | ||
(font-lock-builtin-face ((t (:foreground "#729fcf")))) | ||
(font-lock-comment-face ((t (:foreground "#888a85")))) | ||
(font-lock-constant-face ((t (:foreground "#8ae234")))) | ||
(font-lock-doc-face ((t (:foreground "#888a85")))) | ||
(font-lock-keyword-face ((t (:foreground "#729fcf" :bold t)))) | ||
(font-lock-string-face ((t (:foreground "#ad7fa8" :italic t)))) | ||
(font-lock-type-face ((t (:foreground "#8ae234" :bold t)))) | ||
(font-lock-variable-name-face ((t (:foreground "#eeeeec")))) | ||
(font-lock-warning-face ((t (:bold t :foreground "#f57900")))) | ||
(font-lock-function-name-face ((t (:foreground "#edd400" :bold t :italic t)))) | ||
(comint-highlight-input ((t (:italic t :bold t)))) | ||
(comint-highlight-prompt ((t (:foreground "#8ae234")))) | ||
(isearch ((t (:background "#f57900" :foreground "#2e3436")))) | ||
(isearch-lazy-highlight-face ((t (:foreground "#2e3436" :background "#e9b96e")))) | ||
(show-paren-match-face ((t (:foreground "#2e3436" :background "#73d216")))) | ||
(show-paren-mismatch-face ((t (:background "#ad7fa8" :foreground "#2e3436")))) | ||
(minibuffer-prompt ((t (:foreground "#729fcf" :bold t)))) | ||
(info-xref ((t (:foreground "#729fcf")))) | ||
(info-xref-visited ((t (:foreground "#ad7fa8")))) | ||
))) | ||
|
||
(provide 'color-theme-tango) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(autoload 'csharp-mode "csharp-mode" "Major mode for editing C# code." t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
;CUA Mode is awesome, if for nothing else than it's super easy rectangular selections. | ||
|
||
;I really don't care to emulate windows keybindings, so lets turn those off. | ||
(setq cua-enable-cua-keys nil) | ||
|
||
(cua-mode t) | ||
;I don't want shift+arrow style marking either. | ||
(cua-selection-mode nil) |
Oops, something went wrong.