changeset 580:b72d9da93de6

Without files open current directory in Dired.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Wed, 07 Jan 2015 23:47:06 +0200
parents be9c2fb5dbde
children 84907c43794d
files emacs/e emacs/e.1
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/emacs/e	Wed Jan 07 23:39:23 2015 +0200
+++ b/emacs/e	Wed Jan 07 23:47:06 2015 +0200
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Written by Oleksandr Gavenko <gavenkoa@gmail.com>, 2008.
+# Written by Oleksandr Gavenko <gavenkoa@gmail.com>, 2008-2014.
 
 usage() {
   echo "Shortcut for emacsclient. See e(1) man page."
@@ -13,9 +13,7 @@
     exit 0
     ;;
   "")
-    printf "What file do you want to open?\n\n"
-    usage
-    exit 1
+    set $PWD
     ;;
 esac
 
--- a/emacs/e.1	Wed Jan 07 23:39:23 2015 +0200
+++ b/emacs/e.1	Wed Jan 07 23:47:06 2015 +0200
@@ -31,10 +31,12 @@
 .I window\c
 \[char46]
 
-Both start Emacs if it is not already running through "-a emacs" option.
+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.
 
+Without files open current directory in Dired.
+
 Under Cygwin native Emacs being used.
 .SH OPTIONS
 .IP --help