Permalink
Browse files

Add a few more useful keymappings and update docs.

  • Loading branch information...
1 parent 47cb655 commit 176c0734d6fa6f931b8c298349d6d5f4cfd21007 @jpr5 jpr5 committed Nov 5, 2010
Showing with 24 additions and 22 deletions.
  1. +22 −21 .emacs
  2. +2 −1 .emacs.d/keys.el
View
43 .emacs
@@ -2,14 +2,33 @@
;;; Jordan Ritter's (jpr5) dot-emacs ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;; Notes:
+;;;
+;;; C-x r k - cut rectangle (set-mark first) [remove columns from lines]
+;;; C-x r o - insert rectangle (set-mark first) [add columns to lines]
+;;; C-x r y - yank rectangle (at cursor h-coord)
+;;; C-x n n - narrow view
+;;; C-x n w - widen (un-narrow) view
+;;; C-x RET f - choose coding system ("unix" == dos2unix)
+;;; C-S backspace - cut whole line at point (without needing to select the line)
+;;; M-SPC - delete all horizontal whitespace around point
+;;; M-j - join current line with next, separated with a space
+;;;
+;;; M-x list-colors-display - show what all the colors look like in a buffer
+;;; M-x color-themes-select - show (and select from) all known themes in a buffer
+;;;
+;;; Manually compile all .el -> .elc:
+;;; find .emacs.d -name *.el | xargs emacs -l ~/.emacs -batch -f batch-byte-compile
+;;; Shouldn't be necessary though, with the automatic byte compile stuff.
+
;; Identify ourselves
(setq user-full-name "Jordan Ritter"
user-mail-address "jpr5@darkridge.com"
mail-host-address '"darkridge.com")
-;; Load our settings/config. Set our load path first, load up the on-the-fly
-;; byte-compiler, then loop over all root files as basenames to load
-;; (add-to-list uniqifies). This will prefer elc's over el's if present.
+;; Load our settings/config. Set our load path first, then load up our
+;; on-the-fly byte-compiler. Then loop over all root files as basenames to load
+;; (add-to-list uniqifies). BCC will prefer elc's over el's, if present.
(setq load-path (append '("~/.emacs.d" "~/.emacs.d/lib") load-path))
(require 'bytecomp)
@@ -28,7 +47,6 @@
;; Set the Visual theme
(if window-system
-; (color-theme-jpr5-day)
(color-theme-jpr5-night)
(color-theme-jpr5-tty))
@@ -48,20 +66,3 @@
'(flymake-start-syntax-check-on-newline nil))
(put 'narrow-to-region 'disabled nil)
-
-;;; Notes:
-;;;
-;;; C-x r k - cut rectangle (set-mark first) [remove columns from lines]
-;;; C-x r o - insert rectangle (set-mark first) [add columns to lines]
-;;; C-x r y - yank rectangle (at cursor h-coord)
-;;; C-x n n - narrow view
-;;; C-x n w - widen (un-narrow) view
-;;; C-x RET f - choose coding system ("unix" == dos2unix)
-;;; C-S backspace - cut whole line at point (without needing to select the line)
-;;;
-;;; M-x list-colors-display - show what all the colors look like in a buffer
-;;; M-x color-themes-select - show (and select from) all known themes in a buffer
-;;;
-;;; Manually compile all .el -> .elc:
-;;; find .emacs.d -name *.el | xargs emacs -l ~/.emacs -batch -f batch-byte-compile
-;;; Shouldn't be necessary though, with the automatic byte compile stuff.
View
3 .emacs.d/keys.el
@@ -10,8 +10,9 @@
(global-set-key (kbd "M-r") 'revert-buffer)
(global-set-key (kbd "M-g") 'goto-line)
(global-set-key (kbd "C-M-\\") 'indent-region)
-;(global-set-key (kbd "C-M-\\") 'align)
(global-set-key (kbd "C-M-/") 'align)
+(global-set-key (kbd "M-SPC") 'delete-horizontal-space)
+(global-set-key (kbd "M-j") 'join-line)
;; Some settings when we're in a windowed environment.
(when window-system

0 comments on commit 176c073

Please sign in to comment.