Skip to content

Commit

Permalink
Add message-point binding.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Oct 9, 2009
1 parent 0386f01 commit 7297c0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions starter-kit-bindings.el
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
;; Should be able to eval-and-replace anywhere.
(global-set-key (kbd "C-c e") 'eval-and-replace)

;; For debugging Emacs modes
(global-set-key (kbd "C-c p") 'message-point)

;; Applications

(global-set-key (kbd "C-c j") (lambda () (interactive) (switch-or-start 'jabber-connect "*-jabber-*")))
Expand Down
4 changes: 4 additions & 0 deletions starter-kit-defuns.el
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ Symbols matching the text at point are put first in the completion list."
(list ?\"))
(paredit-mode 1))

(defun message-point ()
(interactive)
(message "%s" (point)))

(defun toggle-fullscreen ()
(interactive)
;; TODO: this only works for X. patches welcome for other OSes.
Expand Down

0 comments on commit 7297c0a

Please sign in to comment.