changeset 595:95fc8aaba9bc

Editor command usable for EDITOR variable (connect to emacs server in terminal client).
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Thu, 10 Dec 2015 12:29:32 +0200
parents 6fdcc066ec68
children a3419aa81ca3
files emacs/Makefile emacs/e emacs/e.1 emacs/et.1
diffstat 4 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/emacs/Makefile	Sat Nov 21 23:23:24 2015 +0200
+++ b/emacs/Makefile	Thu Dec 10 12:29:32 2015 +0200
@@ -34,7 +34,7 @@
   SRC_FILES = e
 endif
 
-MAN1_FILES = $(wildcard *.1)
+MAN1_FILES = $(wildcard e*.1)
 
 .PHONY: all
 all:
@@ -51,6 +51,7 @@
 	done
 	ln -s -f $(bindir)/e $(bindir)/ew
 	ln -s -f $(bindir)/e $(bindir)/ec
+	ln -s -f $(bindir)/e $(bindir)/et
 	for file in $(MAN1_FILES); do \
 		install -m 644 $$file $(man1dir); \
 	done
@@ -61,6 +62,8 @@
 		rm -f $(bindir)/$$file; \
 	done
 	rm -f $(bindir)/ew
+	rm -f $(bindir)/ec
+	rm -f $(bindir)/et
 	for file in $(MAN1_FILES); do \
 		rm -f $(man1dir)/$$file; \
 	done
--- a/emacs/e	Sat Nov 21 23:23:24 2015 +0200
+++ b/emacs/e	Thu Dec 10 12:29:32 2015 +0200
@@ -20,6 +20,7 @@
 case ${0##*/} in
   ew) ERAGS="-a emacs" ;;
   ec) ERAGS="-c" ;;
+  et) ERAGS="-t" ;;
   *) ERAGS="-a emacs -n" ;;
 esac
 
--- a/emacs/e.1	Sat Nov 21 23:23:24 2015 +0200
+++ b/emacs/e.1	Thu Dec 10 12:29:32 2015 +0200
@@ -41,6 +41,10 @@
 .I create frame\c
 \[char46]
 
+.B et
+is shortcut for "emacsclient -t" (wait for exit in terminal)\c
+\[char46]
+
 Both start Emacs if it's not already running through "-a emacs" option.
 
 If first file isn't owned by user - open it in TRAMP sudo.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/emacs/et.1	Thu Dec 10 12:29:32 2015 +0200
@@ -0,0 +1,1 @@
+.so man1/e.1