guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: Add emacs-gtk-look.


From: Pierre Neidhardt
Subject: 02/02: gnu: Add emacs-gtk-look.
Date: Fri, 9 Nov 2018 05:55:15 -0500 (EST)

ambrevar pushed a commit to branch master
in repository guix.

commit ddd925f608bf7bf9af367447ef937e92d531a941
Author: Pierre Neidhardt <address@hidden>
Date:   Fri Nov 9 11:32:25 2018 +0100

    gnu: Add emacs-gtk-look.
    
    * gnu/packages/emacs.scm (emacs-gtk-look): New variable.
---
 gnu/packages/emacs.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 3c7d902..c6008e6 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -12500,3 +12500,41 @@ fix its formatting.  @command{clang-format} is a tool 
that formats C/C++/Obj-C
 code according to a set of style options, see
 @url{http://clang.llvm.org/docs/ClangFormatStyleOptions.html}.";)
       (license license:gpl3+))))
+
+(define-public emacs-gtk-look
+  (package
+    (name "emacs-gtk-look")
+    (version "29")
+    (source (origin
+              (method url-fetch)
+              (uri "https://download.tuxfamily.org/user42/gtk-look.el";)
+              (sha256
+               (base32
+                "14p2nwrd51cr1v06fxbjjn6jdrkf9d6vcxhmscm0kl677s25ypsp"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'configure
+           (lambda _
+             ;; File is read-only.
+             (chmod "gtk-look.el" #o644)
+             (emacs-substitute-variables "gtk-look.el"
+               ("gtk-lookup-devhelp-indices"
+                '(list (expand-file-name 
"~/.guix-profile/share/gtk-doc/html/*/*.devhelp*"))))
+             #t)))))
+    (home-page "http://user42.tuxfamily.org/gtk-look/index.html";)
+    (synopsis "Find and display HTML documentation for GTK, GNOME and Glib")
+    (description "@command{gtk-look} finds and displays HTML documentation for
+GTK, GNOME and Glib functions and variables in Emacs, similar to what
+info-lookup-symbol does for info files (C-h S).  The documentation is expected
+to be devhelp indexes with HTML files.  The location of the indexes can be
+customized.  In addition to C code development @command{gtk-look} is good for
+
address@hidden
address@hidden @command{perl-gtk2}, recognising class funcs like
address@hidden::Label->new} and bare method names like @command{set_text}.
address@hidden @command{guile-gnome}, recognising methods like 
@command{set-text} and
+classes like @command{<gtk-window>}.
address@hidden itemize\n")
+    (license license:gpl3+)))



reply via email to

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