Emacs: Fix guix-devel-mode on file-less buffers
parent
7c479597b5
commit
96b1c2ccbd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue