[Top][All Lists]

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

198/376: Derive Emacs nix-mode from prog-mode.

From: Ludovic Courtès
Subject: 198/376: Derive Emacs nix-mode from prog-mode.
Date: Wed, 28 Jan 2015 22:05:00 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit eca29bd72de5fe814fd1ae8edc8c36351a0759d8
Author: Robert Helgesson <address@hidden>
Date:   Wed Sep 17 08:19:51 2014 +0200

    Derive Emacs nix-mode from prog-mode.
    Emacs 24.1 introduced the notion of "basic major modes" and among these
    is prog-mode, see section "23.2.5 Basic Major Modes" in the Emacs
    manual. The prog-mode basic major mode is recommended as a base for
    derived major modes that are intended for editing source code.
 misc/emacs/nix-mode.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/emacs/nix-mode.el b/misc/emacs/nix-mode.el
index fc64523..790799d 100644
--- a/misc/emacs/nix-mode.el
+++ b/misc/emacs/nix-mode.el
@@ -45,7 +45,7 @@
-(define-derived-mode nix-mode fundamental-mode "Nix"
+(define-derived-mode nix-mode prog-mode "Nix"
   "Major mode for editing Nix expressions.
 The following commands may be useful:

reply via email to

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