Skip to content

Commit

Permalink
Add keybinding for haskell-cabal-visit-file
Browse files Browse the repository at this point in the history
Instead of recommending this binding in the manual, provide it by
default, and document that it the manual.
  • Loading branch information
bergey committed Jan 12, 2016
1 parent b71b3c8 commit 0929ebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 2 additions & 7 deletions doc/haskell-mode.texi
Original file line number Diff line number Diff line change
Expand Up @@ -760,13 +760,8 @@ having a @file{.cabal} extension.
For quickly locating and jumping to the nearest @file{.cabal} file from
a Haskell source buffer, you can use @kbd{M-x haskell-cabal-visit-file};
with a prefix argument (i.e. @kbd{C-u}) @code{find-file-other-window} is
used to visit the @file{.cabal} file. If you wish, you can bind
@code{haskell-cabal-visit-file} to a convenient key sequence, e.g.

@lisp
(eval-after-load "haskell-mode"
'(define-key haskell-mode-map (kbd "C-c v c") 'haskell-cabal-visit-file))
@end lisp
used to visit the @file{.cabal} file.
@code{haskell-cabal-visit-file} is bound to the key sequence @kbd{C-c v c}.

TODO/WRITEME

Expand Down
1 change: 1 addition & 0 deletions haskell.el
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
(define-key map (kbd "M-.") 'haskell-mode-jump-to-def-or-tag)
(define-key map (kbd "C-c C-k") 'haskell-interactive-mode-clear)
(define-key map (kbd "C-c C-c") 'haskell-process-cabal-build)
(define-key map (kbd "C-c v c") 'haskell-cabal-visit-file)
(define-key map (kbd "C-c C-x") 'haskell-process-cabal)
(define-key map [?\C-c ?\C-b] 'haskell-interactive-switch)
(define-key map [?\C-c ?\C-z] 'haskell-interactive-switch)
Expand Down

0 comments on commit 0929ebd

Please sign in to comment.