help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enable guix-devel-mode only in guix source files


From: Pierre Neidhardt
Subject: Re: Enable guix-devel-mode only in guix source files
Date: Fri, 17 Aug 2018 18:44:47 +0200
User-agent: mu4e 1.0; emacs 26.1

I do exactly what you suggested:

--8<---------------cut here---------------start------------->8---
(defun ambrevar/init-guix ()
  (and buffer-file-name
       (string-match "\\<guix\\>" buffer-file-name) ; Adapt this to your 
install.
       (guix-devel-mode)))
(add-hook 'scheme-mode-hook 'ambrevar/init-guix)
--8<---------------cut here---------------end--------------->8---

A better approach might be to add it to .dir-locals.el upstream.  What do you
people think?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]