mirror of
https://github.com/lliding/ld-emacs.git
synced 2025-10-13 05:23:05 +00:00
15 lines
323 B
EmacsLisp
15 lines
323 B
EmacsLisp
;; -*- coding: utf-8; -*-
|
|
;;; Require:
|
|
|
|
;;; Code:
|
|
(defun ld-find-file-in-root (file)
|
|
"Find file with root."
|
|
(interactive "fFind file as sudo: ")
|
|
(require 'tramp)
|
|
(tramp-cleanup-all-connections)
|
|
(find-file (concat "/sudo:root@localhost:" file)))
|
|
|
|
(provide 'ld-file-operations)
|
|
|
|
;;; ld-file-operations.el ends here
|