all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Add Emacs without GTK
@ 2014-07-29  8:00 Taylan Ulrich Bayirli/Kammer
  2014-08-11 16:42 ` Ludovic Courtès
  2014-08-11 16:43 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Taylan Ulrich Bayirli/Kammer @ 2014-07-29  8:00 UTC (permalink / raw)
  To: guix-devel

When using GTK, killing the X server will kill an Emacs daemon even if
all frames of it have been closed.

So here's a package inheriting from the default Emacs, taking out GTK
and passing its ./configure script the argument "--with-x-toolkit=no".
(If this isn't done explicitly and it can't find any toolkit, it will
complain.)

Note that this doesn't mean "no X", just no toolkit; this makes scroll
bars, tool bars, menus etc. ugly.  (I think most seasoned users
disable those anyway.)

AFAIK Lucid AKA Athena AKA Xaw isn't much prettier than no toolkit
either but if someone knows of advantages of Xaw or another supported
toolkit over no toolkit, say so.

Also say if you have a better idea for the package name than
"emacs-no-x-toolkit".


===File
/home/tub/media/src/guix/0001-gnu-Add-emacs-no-x-toolkit.patch===
From eb8b480c810322f8f986fc7cdb230f57e269a8c6 Mon Sep 17 00:00:00 2001
From: Taylan Ulrich B <taylanbayirli@gmail.com>
Date: Mon, 28 Jul 2014 22:26:59 +0200
Subject: [PATCH] gnu: Add emacs-no-x-toolkit.

* gnu/packages/emacs.scm (emacs-no-x-toolkit): New variable.
---
 gnu/packages/emacs.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index af8772e..2ed9e7b 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -36,7 +36,9 @@
   #:use-module ((gnu packages compression)
                 #:renamer (symbol-prefix-proc 'compression:))
   #:use-module (gnu packages xml)
-  #:use-module (gnu packages glib))
+  #:use-module (gnu packages glib)
+  #:use-module (guix utils)
+  #:use-module (srfi srfi-1))
 
 (define-public emacs
   (package
@@ -102,6 +104,15 @@ large Lisp programs.  It has full Unicode support for nearly all human
 languages.")
     (license gpl3+)))
 
+(define-public emacs-no-x-toolkit
+  (package (inherit emacs)
+    (name "emacs-no-x-toolkit")
+    (inputs (alist-delete "gtk+" (package-inputs emacs)))
+    (arguments
+     (substitute-keyword-arguments (package-arguments emacs)
+       ((#:configure-flags flags)
+        `(cons "--with-x-toolkit=no" ,flags))))))
+
 \f
 ;;;
 ;;; Emacs hacking.
-- 
1.8.4

============================================================

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-11 20:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-29  8:00 Add Emacs without GTK Taylan Ulrich Bayirli/Kammer
2014-08-11 16:42 ` Ludovic Courtès
2014-08-11 16:43 ` Ludovic Courtès
2014-08-11 19:09   ` Taylan Ulrich Bayirli/Kammer
2014-08-11 20:35     ` Ludovic Courtès

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.