From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: sass-mode in emacs does not start on file load Date: Fri, 07 Mar 2014 22:34:38 +0100 Message-ID: <87ob1hn15d.fsf@web.de> References: <372dd97c-bf6e-4e8e-ac33-e42ef4581245@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1394228112 614 80.91.229.3 (7 Mar 2014 21:35:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2014 21:35:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 07 22:35:20 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WM2QJ-0008Dj-LI for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2014 22:35:19 +0100 Original-Received: from localhost ([::1]:38324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WM2QJ-0003zQ-7u for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Mar 2014 16:35:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WM2Q2-0003eq-28 for help-gnu-emacs@gnu.org; Fri, 07 Mar 2014 16:35:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WM2Pu-0000Y9-OU for help-gnu-emacs@gnu.org; Fri, 07 Mar 2014 16:35:02 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:35443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WM2Pu-0000Y3-IR for help-gnu-emacs@gnu.org; Fri, 07 Mar 2014 16:34:54 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WM2Pq-0007m9-Jf for help-gnu-emacs@gnu.org; Fri, 07 Mar 2014 22:34:50 +0100 Original-Received: from ip-90-187-104-119.web.vodafone.de ([90.187.104.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2014 22:34:50 +0100 Original-Received: from michael_heerdegen by ip-90-187-104-119.web.vodafone.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2014 22:34:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip-90-187-104-119.web.vodafone.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:V9g5wg0hLv6YkjI9R8f8+uMbh7Q= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96304 Archived-At: strattonbrazil@gmail.com writes: > I've added sass-mode to my .emacs file after installing it from the > package manager, but when I load a .scss file it isn't in sass mode > unless I specifically enter it (M-x sass-mode). Do I need to add some > hook specifically for .scss files to enter sass-mode on start? I don't know anything about this package, but reading the code, I notice that files must have a .sass prefix to be "recognized" - see (add-to-list 'auto-mode-alist '("\\.sass\\'" . sass-mode)) near the file's end. If you think that it would be appropriate to assign a .scss suffix to sass-mode as well, you should report this to the author. Of course you can always add (add-to-list 'auto-mode-alist '("\\.scss\\'" . sass-mode)) to your configuration. Regards, Michael.