[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to open editor in --script file?
From: |
Jean Louis |
Subject: |
How to open editor in --script file? |
Date: |
Thu, 23 May 2019 08:14:56 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
Hello,
I would like to use emacs in a script, and within
script I would like to use helm for selection.
I do get the helm prompt on command line, but not
the editor screen, so I cannot select anything.
Question is how to open the actual editor from the script?
Jean
#!/usr/local/bin/emacs --script
;; Time-stamp: "Thursday, May 23 2019, 08:08"
(setq *home* (getenv "HOME"))
(setq *local-elisp* (concat *home* "/Programming/emacs-lisp/"))
(add-to-list 'load-path *local-elisp*)
(setq *emacs.d* (concat *home* "/.emacs.d/"))
(setq *elpa* (concat *emacs.d* "elpa/"))
(let ((default-directory *elpa*))
(normal-top-level-add-subdirs-to-load-path))
(load "helm" nil t)
(setq temporary-file-directory "/home/data1/protected/tmp/")
(setenv "TMPDIR" temporary-file-directory)
(load "utilities" nil t)
(load "rcd-db" nil t)
;; (fundamental-mode)
;; (load "helm-mode")
;; Following should select a list within editor
;; and helm and return me ID number, and exit from script.
(rcd/combo-selection "accounts")
- How to open editor in --script file?,
Jean Louis <=