Code Monkey home page Code Monkey logo

auto-sudoedit's Introduction

MELPA

auto-sudoedit

English

Summary

A package that automatically reopens files with sudo.

When opening a file that requires root authority, you can open the file via sudo using tramp, but it is troublesome to input it one by one.

This is a package that will automatically reopen with sudo if it cannot write to the opened file or directory.

How to install

Place it in melpa or directly downloaded by PATH.

If downloaded directly

(require 'auto-sudoedit)

auto-sudoedit works when minor mode is enabled.

(auto-sudoedit-mode 1)

If you enable minor mode, When you open a file that requires root privileges, It will be reopened automatically.

Recommend

If you find the following message depressing

Autosave file on local temporary directory, do you want to continue? (y or n) y

On a non-shared PC, you can allow some security risk and use. Set tramp-allow-unsafe-temporary-files to t.

Japanese

概要

自動的にsudoでファイルを開き直すパッケージです。

root権限が必要なファイルを開く場合。 trampを使ってsudo経由でファイルを開くことが出来ますが、 一々入力するのは面倒くさいです。

これは開いたファイルかディレクトリに書き込みができない場合、 自動的にsudoで開き直してくれるパッケージです。

How to install

melpaか直接ダウンロードでPATHが通った場所に置きます。

直接ダウンロードした場合は、

(require 'auto-sudoedit)

auto-sudoeditはマイナーモードが有効の時に動きます。

(auto-sudoedit-mode 1)

マイナーモードを有効にしておけば、 root権限が必要なファイルを開いたときに、 自動で開き直されます。

推奨

もし以下のメッセージが鬱陶しいならば、

Autosave file on local temporary directory, do you want to continue? (y or n) y

共有してないPCでは多少のセキュリティリスクを許容して、 tramp-allow-unsafe-temporary-filestにするのをオススメします。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.