From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Fast emacs? Date: Sun, 02 Aug 2009 22:34:45 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87bpmy8cbz.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249245764 9295 80.91.229.12 (2 Aug 2009 20:42:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Aug 2009 20:42:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 02 22:42:37 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MXht4-0006Rz-V5 for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Aug 2009 22:42:35 +0200 Original-Received: from localhost ([127.0.0.1]:53492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXht4-0000gy-Ft for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Aug 2009 16:42:34 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!news.eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-X-Trace: news.eternal-september.org U2FsdGVkX18xkMYshE82sR1d4anLU1u8vyJG3uNxW764/yNpCpwDCOma28atF9hYEw9ujs3I1DX5ra0rUSh8C4DrxAG0mE+C1amI1EBbkQvP8lAZNKJp7eQOydaZsBGn9Gxz361oMvE/bEoM1vwxDnO/VD5WJsf2 Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Sun, 2 Aug 2009 20:42:19 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+sthtPDAhaw0o+l0V3HZ0pbdd2x3Gv9y7lSCLtNqUhBA== Cancel-Lock: sha1:hkLapldDHMlrYp0K0t57hptID4w= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:171498 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66676 Archived-At: David Kastrup writes: > kj 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) `----