all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Fast emacs?
Date: Sun, 02 Aug 2009 22:34:45 +0200	[thread overview]
Message-ID: <h54tnb$542$2@rileyrgdev.eternal-september.org> (raw)
In-Reply-To: 87bpmy8cbz.fsf@lola.goethe.zz

David Kastrup <dak@gnu.org> writes:

> kj <socyl@987jk.com.invalid> writes:
>
>> For ***years*** I've been looking for a solution to this problem,
>> and I'm truly amazed that I have yet to find it: how to get a
>> fast-starting version of emacs.  The problem is that I have a big
>> .emacs file and a big Emacs desktop, which means that my Emacs takes
>> forever to start.  This is fine most of the time, but occasionally
>> I want a fast-starting emacs session (e.g. when I run "sudo emacs"
>> to edit a superuser-owned config file),
>
> C-x C-f /sudo::/etc/fstab RET

I use this which is great. Open the file in normal mode, and then C-x
C-r to switch to root privs.

,----
| (defun find-alternative-file-with-sudo ()
|   "Open current buffer as root!"
|   (interactive)
|   (when buffer-file-name
|     (find-alternate-file
|      (concat "/sudo:root@localhost:"
| 	     buffer-file-name))))
| 
| (global-set-key (kbd "C-x C-r") 'find-alternative-file-with-sudo)
`----


  reply	other threads:[~2009-08-02 20:34 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-17 21:05 Fast emacs? kj
2009-05-17 21:39 ` Anselm Helbig
2009-05-18  1:13   ` Giorgos Keramidas
2009-05-18 11:03   ` Bernardo
2009-05-18 11:29     ` ken
2009-05-17 22:12 ` Michael Ekstrand
2009-05-18  0:16 ` Jason Rumney
2009-05-18  2:51   ` kj
2009-05-18  3:38     ` B. T. Raven
2009-05-18 18:05     ` Drew Adams
2009-05-21 10:04 ` Christian Herenz
2009-08-02 15:28 ` David Kastrup
2009-08-02 20:34   ` Richard Riley [this message]
2009-10-13  8:50   ` Cecil Westerhof
2009-10-13 13:17     ` Teemu Likonen
2009-10-16 10:28       ` Cecil Westerhof
  -- strict thread matches above, loose matches on Subject: below --
2009-05-18  5:43 Dirk-Jan C. Binnema
     [not found] <mailman.7364.1242625447.31690.help-gnu-emacs@gnu.org>
2009-05-18  8:15 ` Tim X
2009-05-20 10:04 ` Jean Magnan de Bornier
2009-05-20 13:24   ` Jean Magnan de Bornier
2009-05-20 16:54     ` thierry.volpiatto
     [not found]     ` <mailman.7547.1242838889.31690.help-gnu-emacs@gnu.org>
2009-05-21  6:20       ` Jean Magnan de Bornier
2009-05-21  9:49         ` Pascal J. Bourguignon
2009-05-21 15:08         ` thierry.volpiatto
2009-05-21 10:13     ` Hugo Heden
2009-05-21 10:29       ` Lennart Borgman

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='h54tnb$542$2@rileyrgdev.eternal-september.org' \
    --to=rileyrgdev@gmail.com \
    --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.