Emacs: Fix guix-devel-mode on file-less buffers

master
Pierre Neidhardt 2018-04-17 11:55:25 +05:30
parent 7c479597b5
commit 96b1c2ccbd
1 changed files with 3 additions and 2 deletions

View File

@ -178,8 +178,9 @@
(when (executable-find "guix")
(nconc package-selected-packages '(guix))
(defun ambrevar/init-guix ()
(when (string-match "\\<guix\\>" buffer-file-name)
(guix-devel-mode)))
(and buffer-file-name
(string-match "\\<guix\\>" buffer-file-name)
(guix-devel-mode)))
(add-hook 'scheme-mode-hook 'ambrevar/init-guix))
;;; Helm