Skip to content

Commit 19b0fb5

Browse files
committed
Merge pull request #1064 from bergey/keybinding-cabal-visit-file
Add keybinding for `haskell-cabal-visit-file`
2 parents 7770a46 + 0929ebd commit 19b0fb5

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

doc/haskell-mode.texi

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -760,13 +760,8 @@ having a @file{.cabal} extension.
760760
For quickly locating and jumping to the nearest @file{.cabal} file from
761761
a Haskell source buffer, you can use @kbd{M-x haskell-cabal-visit-file};
762762
with a prefix argument (i.e. @kbd{C-u}) @code{find-file-other-window} is
763-
used to visit the @file{.cabal} file. If you wish, you can bind
764-
@code{haskell-cabal-visit-file} to a convenient key sequence, e.g.
765-
766-
@lisp
767-
(eval-after-load "haskell-mode"
768-
'(define-key haskell-mode-map (kbd "C-c v c") 'haskell-cabal-visit-file))
769-
@end lisp
763+
used to visit the @file{.cabal} file.
764+
@code{haskell-cabal-visit-file} is bound to the key sequence @kbd{C-c v c}.
770765

771766
TODO/WRITEME
772767

haskell.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
(define-key map (kbd "M-.") 'haskell-mode-jump-to-def-or-tag)
4949
(define-key map (kbd "C-c C-k") 'haskell-interactive-mode-clear)
5050
(define-key map (kbd "C-c C-c") 'haskell-process-cabal-build)
51+
(define-key map (kbd "C-c v c") 'haskell-cabal-visit-file)
5152
(define-key map (kbd "C-c C-x") 'haskell-process-cabal)
5253
(define-key map [?\C-c ?\C-b] 'haskell-interactive-switch)
5354
(define-key map [?\C-c ?\C-z] 'haskell-interactive-switch)

0 commit comments

Comments
 (0)