[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/24: emacs: Add utils to make symbol and string for guix command.
From: |
Alex Kost |
Subject: |
05/24: emacs: Add utils to make symbol and string for guix command. |
Date: |
Fri, 28 Aug 2015 20:06:31 +0000 |
alezost pushed a commit to branch wip-emacs-popup-ui
in repository guix.
commit d14f365912a694938239d98225a2c5cfa8c6ea9e
Author: Alex Kost <address@hidden>
Date: Sun Aug 16 11:09:39 2015 +0300
emacs: Add utils to make symbol and string for guix command.
* emacs/guix-utils.el (guix-command-symbol, guix-command-string): New
functions.
---
emacs/guix-utils.el | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/emacs/guix-utils.el b/emacs/guix-utils.el
index df6636c..dfcab4d 100644
--- a/emacs/guix-utils.el
+++ b/emacs/guix-utils.el
@@ -144,6 +144,14 @@ add both to the end and to the beginning."
(t
(concat separator str separator)))))
+(defun guix-command-symbol (&optional args)
+ "Return symbol by concatenating 'guix' and ARGS (strings)."
+ (intern (guix-concat-strings (cons "guix" args) "-")))
+
+(defun guix-command-string (&optional args)
+ "Return 'guix ARGS ...' string."
+ (guix-concat-strings (cons "guix" args) " "))
+
(defun guix-completing-read-multiple (prompt table &optional predicate
require-match initial-input
hist def inherit-input-method)
- branch wip-emacs-popup-ui created (now a7d4674), Alex Kost, 2015/08/28
- 01/24: emacs: Remove leftover internal variable., Alex Kost, 2015/08/28
- 02/24: emacs: Add 'guix-prettify' to 'guix' custom group., Alex Kost, 2015/08/28
- 06/24: emacs: Add utils to copy guix command., Alex Kost, 2015/08/28
- 03/24: emacs: Add and use 'guix-while-search'., Alex Kost, 2015/08/28
- 04/24: emacs: Add and use 'guix-concat-strings'., Alex Kost, 2015/08/28
- 05/24: emacs: Add utils to make symbol and string for guix command.,
Alex Kost <=
- 07/24: emacs: Add 'guix-any'., Alex Kost, 2015/08/28
- 08/24: emacs: Add 'guix-memoized-defalias' macro., Alex Kost, 2015/08/28
- 09/24: guix lint: Export checkers and <lint-checker> accessors., Alex Kost, 2015/08/28
- 10/24: emacs: Add 'guix-lint-checker-names'., Alex Kost, 2015/08/28
- 11/24: guix graph: Export node types and <node-type> accessors., Alex Kost, 2015/08/28
- 12/24: emacs: Add 'guix-graph-type-names'., Alex Kost, 2015/08/28
- 13/24: emacs: Add 'guix-package-names'., Alex Kost, 2015/08/28
- 17/24: ui: Add 'run-guix'., Alex Kost, 2015/08/28
- 15/24: emacs: Add minibuffer readers., Alex Kost, 2015/08/28
- 18/24: emacs: Add code to run guix command in REPL., Alex Kost, 2015/08/28