aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Tai <atai@atai.org>2023-02-12 15:54:49 -0800
committerChristopher Baines <mail@cbaines.net>2023-03-01 15:15:50 +0000
commitc05adaddb14064f0d2817e331fe5d0618f218bb9 (patch)
tree2f28935b0abb96fc183f0172ec8aaa3971cb6a07
parent4ccba48de14cc10f40abb1a5237749346222b6e7 (diff)
downloadguix-c05adaddb14064f0d2817e331fe5d0618f218bb9.tar
guix-c05adaddb14064f0d2817e331fe5d0618f218bb9.tar.gz
gnu: Add emacs-motif.
* gnu/packages/text-editors.scm (emacs-motif): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net>
-rw-r--r--gnu/packages/emacs.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 51ce4e481b..94d08244d1 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -66,6 +66,7 @@
#:use-module (gnu packages gtk)
#:use-module (gnu packages guile)
#:use-module (gnu packages image)
+ #:use-module (gnu packages lesstif) ; motif
#:use-module (gnu packages linux) ; alsa-lib, gpm
#:use-module (gnu packages mail) ; for mailutils
#:use-module (gnu packages multiprecision)
@@ -512,6 +513,30 @@ editor (with xwidgets support)")
(modify-inputs (package-inputs emacs)
(prepend webkitgtk-with-libsoup2 libxcomposite)))))
+(define-public emacs-motif
+ (package/inherit emacs
+ (name "emacs-motif")
+ (synopsis
+ "The extensible, customizable, self-documenting text editor (with Motif
+toolkit)")
+ (build-system gnu-build-system)
+ (inputs (modify-inputs (package-inputs emacs)
+ (delete "gtk+")
+ (prepend inotify-tools motif)))
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments
+ emacs)
+ ((#:configure-flags flags #~'())
+ #~(cons "--with-x-toolkit=motif"
+ #$flags))
+ ((#:modules _)
+ (%emacs-modules build-system))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (delete 'restore-emacs-pdmp)
+ (delete 'strip-double-wrap)))))))
+
(define-public emacs-no-x
(package/inherit emacs
(name "emacs-no-x")