Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: aethanyc/emacs-init
base: 879e7e0609
...
head fork: aethanyc/emacs-init
compare: efdd5f3cdd
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
Commits on Sep 09, 2012
@aethanyc Refactor my-lisp-hook and add ielm-mode-hook 40cd221
@aethanyc Keybindings tweak
1. Delete ido-dired keybinding.
2. Rebind imenu to C-c i.
3. Put all C-c keybindings in a section.
b9927fd
@aethanyc Use projectile mode efdd5f3
View
1  .gitignore
@@ -5,3 +5,4 @@ save-file/*
tips.html
*.elc
+TAGS
View
23 aethanyc/keybindings.el
@@ -19,12 +19,6 @@
(global-set-key (kbd "C-M-r") 'isearch-backward)
(global-set-key (kbd "C-M-%") 'query-replace)
-;; Jump to a definition in the current buffer.
-(global-set-key (kbd "C-x C-i") 'imenu)
-
-(global-set-key (kbd "C-c y") 'bury-buffer)
-(global-set-key (kbd "C-c r") 'revert-buffer)
-
;; Start an eshell or switch to it if there is one.
(global-set-key (kbd "C-x m") 'eshell)
@@ -49,10 +43,6 @@
(interactive)
(find-file user-init-file)))
-;; Join line
-(global-set-key (kbd "C-c j") 'join-next-line)
-(global-set-key (kbd "C-c J") 'join-line)
-
(global-set-key (kbd "M-/") 'hippie-expand)
;; Toggle from 3 cases: UPPER CASE, lower case, and Title Case.
@@ -61,12 +51,11 @@
;; Using S-arrow keys to move between windows.
(windmove-default-keybindings)
-;; Ace Jump Mode
-(global-set-key (kbd "C-c f") 'ace-jump-mode)
+;; C-c keybindings
(global-set-key (kbd "C-c b") 'ace-jump-mode-pop-mark)
-
-;; Magit
+(global-set-key (kbd "C-c f") 'ace-jump-mode)
(global-set-key (kbd "C-c g") 'magit-status)
-
-;; Dired
-(global-set-key (kbd "C-c d") 'ido-dired)
+(global-set-key (kbd "C-c i") 'imenu)
+(global-set-key (kbd "C-c J") 'join-line)
+(global-set-key (kbd "C-c j") 'join-next-line)
+(global-set-key (kbd "C-c r") 'revert-buffer)
View
21 aethanyc/mode-hooks.el
@@ -1,17 +1,24 @@
;;;-------------------------------------------------------------------
;;; Lisp Mode
-(defun my-lisp-common-hook ()
+(defun my-lisp-hook ()
(turn-on-eldoc-mode)
(paredit-mode 1)
(eldoc-add-command 'paredit-backward-delete
- 'paredit-close-round)
+ 'paredit-close-round))
+
+(defun my-lisp-edit-keybindings ()
(local-set-key (kbd "C-c v") 'eval-buffer)
(local-set-key (kbd "RET") 'reindent-then-newline-and-indent))
-(add-hook 'lisp-mode-hook 'my-lisp-common-hook)
-(add-hook 'emacs-lisp-mode-hook 'my-lisp-common-hook)
-(add-hook 'lisp-interaction-mode-hook 'my-lisp-common-hook)
+(defun my-lisp-edit-hook ()
+ (my-lisp-hook)
+ (my-lisp-edit-keybindings))
+
+(add-hook 'lisp-mode-hook 'my-lisp-edit-hook)
+(add-hook 'emacs-lisp-mode-hook 'my-lisp-edit-hook)
+(add-hook 'lisp-interaction-mode-hook 'my-lisp-edit-hook)
+(add-hook 'ielm-mode-hook 'my-lisp-hook)
;;;-------------------------------------------------------------------
;;; C/C++ Mode
@@ -70,3 +77,7 @@
;; Load Ergoemacs functions
(load "functions")
+
+;; Projectile Mode
+(projectile-global-mode)
+(setq a-enable-caching t)
View
1  aethanyc/packages.el
@@ -10,6 +10,7 @@
markdown-mode
maxframe
paredit
+ projectile
smex
smooth-scrolling
undo-tree

No commit comments for this range

Something went wrong with that request. Please try again.