From owner-freebsd-questions@FreeBSD.ORG Thu Apr 5 16:29:06 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AB959106566B for ; Thu, 5 Apr 2012 16:29:06 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 5C1988FC08 for ; Thu, 5 Apr 2012 16:29:05 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id q35GTxjA043906 for freebsd-questions@freebsd.org; Thu, 5 Apr 2012 11:29:59 -0500 (CDT) Date: Thu, 5 Apr 2012 11:29:59 -0500 (CDT) From: Robert Bonomi Message-Id: <201204051629.q35GTxjA043906@mail.r-bonomi.com> To: freebsd-questions@freebsd.org In-Reply-To: <4F7D4273.1010604@netfence.it> Subject: Re: Fast question abount EDITOR X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2012 16:29:06 -0000 Andrea Venturoli wrote: > > Hello. > > This might be a stupid question... however... > > %setenv EDITOR emacs -nw > setenv: Too many arguments. > > %setenv EDITOR "emacs -nw" > %crontab -e > crontab: emacs -nw: No such file or directory > crontab: "emacs -nw" exited with status 1 > > > Is there a way I can easily achieve the above? Not 'directly', the EDITOR variable has to be the name of an _executable_, it is passed to exec and friends, as the executable to load. There -may- be annother environment variable that emacs _itself_ looks at for start-up switch settings, (the 'minimal' manpage I have access to doesn't mention any, but I'm _not_ an emacs user and don'k have full docs available) If all else fails, put the 'command' equivelent of '-nw' in your emacs start-up file. > Do I really need a script which in turns call emacs -nw? Authoritative answer: 'maybe'. See above for some 'possible' alternatives. classic advice concerning the 'fine manual'