branch: elpa/nix-mode
commit 1c54c721619b4e658031757f09068957dae8e329
Author: Matthew Justin Bauer <[email protected]>
Commit: GitHub <[email protected]>
Remove visit-file.
C-x C-f works just as well.
---
nix-mode.el | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/nix-mode.el b/nix-mode.el
index 18a22d8267..3736977bb1 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -373,17 +373,6 @@
(t
(indent-line-to (nix-indent-level)))))
-;; Visit file
-
-(defun nix-visit-file ()
- "Go to file under cursor."
- (interactive)
- (save-excursion
- (forward-whitespace -1)
- (skip-chars-forward " \t")
- (if (looking-at nix-re-file-path)
- (find-file (match-string-no-properties 0)))))
-
;; Key maps
(defvar nix-mode-menu (make-sparse-keymap "Nix")
@@ -394,7 +383,6 @@
(defun nix-create-keymap ()
"Create the keymap associated with the Nix mode."
- (define-key nix-mode-map "\C-c\C-f" 'nix-visit-file)
(define-key nix-mode-map "\C-c\C-r" 'nix-format-buffer))
(defun nix-create-menu ()