Permalink
Browse files

Include SPC in example bindings.

  • Loading branch information...
1 parent dc0ea0c commit 76692ace1ed6b9880341fcd77aa785a66e08d86f @chrisdone chrisdone committed Jul 8, 2011
Showing with 5 additions and 46 deletions.
  1. +2 −3 README.md
  2. +0 −43 examples/bindings.el
  3. +3 −0 examples/init.el
View
@@ -4,7 +4,7 @@ I'm still working on it. See the issue tracker for upcoming features
and bugs. Please wait until test-cases (see “Complete unit testing”
milestone) have been written before contributing patches.
-# QUICK TRY
+# QUICK TRY (includes dependencies, just run it :-)
$ emacs -nw -Q -l examples/init.el
@@ -15,8 +15,7 @@ milestone) have been written before contributing patches.
(add-to-list 'auto-mode-alist (cons "\\.hs\\'" 'hs-mode))
(add-to-list 'auto-mode-alist (cons "\\.cabal\\'" 'hs-cabal-mode))
-See examples/bindings.el for example bindings to use. Most of these
-will become default eventually.
+See examples/init.el for example bindings.
I will include auto-complete and auto-complete-etags.el (and any other
dependencies) in the distribution in future.
View
@@ -1,43 +0,0 @@
-(add-hook 'hs-mode-hook
- (lambda ()
- (interactive)
- (define-key hs-mode-map (kbd "C-c C-c") 'hs-cabal-build-interactive)
- (define-key hs-mode-map (kbd "C-c c") 'hs-cabal-ido-interactive)
- (define-key hs-mode-map (kbd "C-c t") 'hs-cabal-script-interactive)
- (define-key hs-mode-map (kbd "C-c C-t") 'hs-process-type-of-interactive)
- (define-key hs-mode-map (kbd "C-c C-i") 'hs-process-info-of-interactive)
- (define-key hs-mode-map (kbd "<f5>")
- (lambda ()
- (interactive)
- (when (buffer-modified-p)
- (save-buffer))
- (hs-process-load-interactive)))
- (define-key hs-mode-map (kbd "\C-x\C-s")
- (lambda ()
- (interactive)
- (when (buffer-modified-p)
- (save-buffer)
- (hs-tags-generate-interactive))))
- (define-key hs-mode-map (kbd "<return>") 'hs-mode-newline-same-col)
- (define-key hs-mode-map (kbd "C-<return>") 'hs-mode-newline-indent)
- (define-key hs-mode-map (kbd "C-<left>")
- (lambda ()
- (interactive)
- (hs-move-nested -1)))
- (define-key hs-mode-map (kbd "C-<right>")
- (lambda ()
- (interactive)
- (hs-move-nested 1)))
- (define-key hs-mode-map (kbd "\"") 'paredit-doublequote)
- (define-key hs-mode-map (kbd "[") 'paredit-open-square)
- (define-key hs-mode-map (kbd "(") 'paredit-open-round)
- (define-key hs-mode-map (kbd "]") 'paredit-close-square)
- (define-key hs-mode-map (kbd ")") 'paredit-close-round)
- (define-key hs-mode-map (kbd "{") 'paredit-open-curly)
- (define-key hs-mode-map (kbd "}") 'paredit-close-curly)
- (define-key hs-mode-map (kbd "M-(") 'paredit-wrap-round)
- (define-key hs-mode-map (kbd "DEL") 'paredit-backward-delete)
- (define-key hs-mode-map (kbd "C-k") 'paredit-kill)
- (define-key hs-mode-map (kbd "M-[") 'paredit-wrap-square)
- (define-key hs-mode-map (kbd "C-j") 'paredit-newline)
- (define-key hs-mode-map [f8] 'hs-navigate-imports)))
View
@@ -55,6 +55,9 @@
'hs-mode-hook
(lambda ()
(interactive)
+ ;; Space after a symbol shows its info.
+ (define-key hs-mode-map (kbd "SPC") 'hs-mode-space-info)
+
;; Build the current Cabal project.
(define-key hs-mode-map (kbd "C-c C-c") 'hs-cabal-build-interactive)

0 comments on commit 76692ac

Please sign in to comment.