[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: switching dired using sudo

From: Thorsten Jolitz
Subject: Re: switching dired using sudo
Date: Thu, 20 Feb 2014 16:59:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Luca Ferrari <address@hidden> writes:

> Hi,
> is there a quick way for switching an opening dired buffer to a
> "sudo"? I know I can start dired with /sudo::/ but what if I'm already
> browsing directory content and need to execute some dired commands via
> sudo?

there is a package for that:

| dired-toggle-sudo is an uninstalled package.
|      Status: Available -- [Install]
|     Version: 20131022.626
|     Summary: Browse directory with sudo privileges.
| Allow to switch from current user to sudo when browsind `dired' buffers.
| To activate and swit with "C-c C-s" just put in your .emacs:
| (require 'dired-toggle-sudo)
| (define-key dired-mode-map (kbd "C-c C-s") 'dired-toggle-sudo)
| (eval-after-load 'tramp
|  '(progn
|     ;; Allow to use: /sudo:address@hidden:/path/to/file
|     (add-to-list 'tramp-default-proxies-alist
|                   '(".*" "\\`.+\\'" "/ssh:%h:"))))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]