all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <moasenwood@zoho.eu>
To: help-gnu-emacs@gnu.org
Subject: Re: crontab from Emacs not only with Emacs
Date: Mon, 13 May 2019 03:15:10 +0200	[thread overview]
Message-ID: <86h89zyx29.fsf@zoho.eu> (raw)
In-Reply-To: CAM-tV-80g2kpvToYubSXn7dBRthTOsnA-7FCPrJS4HCbBegRYg@mail.gmail.com

Noam Postavsky wrote:

> I think the answer here would be to set
> EDITOR to emacsclient.

Thanks to all of you, you are right of course!

In Emacs, do

    M-x server-start RET

Then in the shell do

    $ EDITOR=emacsclient crontab -e

Then edit the file in Emacs and do `C-x #'
when done.

The MELPA `crontab-mode' does not kick in by
default tho, but one can live with that, or
configure it, I suppose, based on the crontab
filename. As for me, I think I'll uninstall it
as I don't plan to do that much scheduling with
crontab. Not everything has to have its own
mode! Just like with space. Just because we are
in space, not _everything_ has to be called
something with "space": the "space bar", "space
police", etc. Right?

Anyway if anyone is hooked on SX rep here is
the exact same question [1] but with a couple
of comments and an answer and there is no
mention of this method, which IMO works much
better than their by all means creative
attempts :)


[1] https://emacs.stackexchange.com/questions/10077/how-to-edit-crontab-directly-within-emacs-when-i-already-have-emacs-open

-- 
underground experts united
http://user.it.uu.se/~embe8573




      parent reply	other threads:[~2019-05-13  1:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-12  7:57 crontab from Emacs not only with Emacs Emanuel Berg
2019-05-12  7:59 ` tomas
2019-05-12 11:21 ` Marcin Borkowski
2019-05-12 11:28   ` Noam Postavsky
2019-05-12 13:25     ` Marcin Borkowski
2019-05-13  1:15     ` Emanuel Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h89zyx29.fsf@zoho.eu \
    --to=moasenwood@zoho.eu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.