all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <ambrevar@gmail.com>
To: Arun Isaac <arunisaac@systemreboot.net>
Cc: help-guix@gnu.org
Subject: Re: Enable guix-devel-mode only in guix source files
Date: Fri, 17 Aug 2018 18:44:47 +0200	[thread overview]
Message-ID: <87ftzd3pts.fsf@gmail.com> (raw)
In-Reply-To: <cu7o9e16kcz.fsf@systemreboot.net>

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2018-08-17 16:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-17 16:14 Enable guix-devel-mode only in guix source files Arun Isaac
2018-08-17 16:44 ` Pierre Neidhardt [this message]
2018-08-17 19:46   ` Alex Kost
2018-08-19 18:08     ` Arun Isaac
2018-08-20 19:57       ` Alex Kost
2018-08-20 22:18         ` Pierre Neidhardt
2018-08-21 15:15           ` Alex Kost
2018-08-21 15:23             ` Pierre Neidhardt
2018-08-21 17:12               ` Oleg Pykhalov
2018-08-22  8:06               ` Alex Kost
2018-08-24 22:30                 ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ftzd3pts.fsf@gmail.com \
    --to=ambrevar@gmail.com \
    --cc=arunisaac@systemreboot.net \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.