* switching dired using sudo
@ 2014-02-20 13:32 Luca Ferrari
2014-02-20 14:49 ` Kevin Rodgers
2014-02-20 15:59 ` Thorsten Jolitz
0 siblings, 2 replies; 4+ messages in thread
From: Luca Ferrari @ 2014-02-20 13:32 UTC (permalink / raw)
To: help-gnu-emacs
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?
Thanks,
Luca
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: switching dired using sudo
2014-02-20 13:32 switching dired using sudo Luca Ferrari
@ 2014-02-20 14:49 ` Kevin Rodgers
2014-02-20 15:59 ` Thorsten Jolitz
1 sibling, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2014-02-20 14:49 UTC (permalink / raw)
To: help-gnu-emacs
On 2/20/14 6:32 AM, Luca Ferrari wrote:
> 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?
C-x C-v (find-alternate-file)
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: switching dired using sudo
2014-02-20 13:32 switching dired using sudo Luca Ferrari
2014-02-20 14:49 ` Kevin Rodgers
@ 2014-02-20 15:59 ` Thorsten Jolitz
2014-02-20 16:56 ` Luca Ferrari
1 sibling, 1 reply; 4+ messages in thread
From: Thorsten Jolitz @ 2014-02-20 15:59 UTC (permalink / raw)
To: help-gnu-emacs
Luca Ferrari <fluca1978@infinito.it> 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:user@host:/path/to/file
| (add-to-list 'tramp-default-proxies-alist
| '(".*" "\\`.+\\'" "/ssh:%h:"))))
`-------------------------------------------------------------------------
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: switching dired using sudo
2014-02-20 15:59 ` Thorsten Jolitz
@ 2014-02-20 16:56 ` Luca Ferrari
0 siblings, 0 replies; 4+ messages in thread
From: Luca Ferrari @ 2014-02-20 16:56 UTC (permalink / raw)
To: Thorsten Jolitz; +Cc: help-gnu-emacs
On Thu, Feb 20, 2014 at 4:59 PM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
> Luca Ferrari <fluca1978@infinito.it> 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.
Thanks, it was what I was looking for.
Luca
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-20 16:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-20 13:32 switching dired using sudo Luca Ferrari
2014-02-20 14:49 ` Kevin Rodgers
2014-02-20 15:59 ` Thorsten Jolitz
2014-02-20 16:56 ` Luca Ferrari
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.