Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Remove cheat binding, use coding-hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Dec 3, 2008
1 parent a9e12ca commit 38ac75b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 3 additions & 4 deletions starter-kit-bindings.el
Expand Up @@ -64,16 +64,15 @@
;; Fetch the contents at a URL, display it raw.
(global-set-key (kbd "C-x h") 'view-url)

;; Help

;; Help should search more than just commands
(global-set-key (kbd "C-h a") 'apropos)
(global-set-key (kbd "C-h c") 'cheat)

;; Applications

(global-set-key (kbd "C-c j") (lambda () (interactive) (switch-or-start 'jabber-connect "*-jabber-*")))
(global-set-key (kbd "C-c g") (lambda () (interactive) (switch-or-start 'gnus "*Group*")))
(global-set-key (kbd "C-c i") (lambda () (interactive) (switch-or-start (lambda () (rcirc-connect "irc.freenode.net"))
(global-set-key (kbd "C-c i") (lambda () (interactive) (switch-or-start (lambda ()
(rcirc-connect "irc.freenode.net"))
"*irc.freenode.net*")))
(global-set-key (kbd "C-c J") 'jabber-send-presence)
(global-set-key (kbd "C-c M-j") 'jabber-disconnect)
Expand Down
2 changes: 2 additions & 0 deletions starter-kit-lisp.el
Expand Up @@ -3,6 +3,8 @@
;; Part of the Emacs Starter Kit

(add-hook 'emacs-lisp-mode-hook 'eldoc-mode)
(add-hook 'emacs-lisp-mode-hook 'my-coding-hook)
(add-hook 'lisp-mode-hook 'my-coding-hook)

(add-hook 'emacs-lisp-mode-hook 'emacs-lisp-remove-elc-on-save)

Expand Down
2 changes: 2 additions & 0 deletions starter-kit-ruby.el
Expand Up @@ -30,6 +30,8 @@
(delete-region (point-min) (point-max))))))
(ad-activate 'ruby-do-run-w/compilation)))

(add-hook 'ruby-mode-hook 'my-coding-hook)

;; TODO: set up ri
;; TODO: electric
;; TODO: flymake
Expand Down

0 comments on commit 38ac75b

Please sign in to comment.