From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: Enable guix-devel-mode only in guix source files Date: Fri, 17 Aug 2018 21:44:36 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqhOs-0001eA-8t for help-guix@gnu.org; Fri, 17 Aug 2018 12:14:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqhOp-0007SS-4v for help-guix@gnu.org; Fri, 17 Aug 2018 12:14:58 -0400 Received: from vultr.systemreboot.net ([45.77.148.100]:48714) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fqhOo-0007Q1-KC for help-guix@gnu.org; Fri, 17 Aug 2018 12:14:55 -0400 Received: from [192.168.2.1] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fqhOg-0007si-KT for help-guix@gnu.org; Fri, 17 Aug 2018 21:44:47 +0530 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org How do I enable guix-devel-mode only in guix source files? The suggested method in the manual (shown below) enables guix-devel-mode in all scheme-mode buffers. (add-hook 'scheme-mode-hook 'guix-devel-mode) I know I can write some elisp to find the buffer-file-name, find if it is in my guix source folder and enable or not enable guix-devel-mode accordingly. But, I am wondering whether there is any easier way. What do people here normally do?