Coder Social home page Coder Social logo

tmacs's Introduction

TMACS

Edit remote files with your editor of choice (vi or emacs), even if TRAMP doesn't really work for you or if you ssh and su your way through a network. It works by tunneling the file-data through the terminal on which you are working.

Example

Start local emacs:

$ emacs

In emacs, start the server:

M-x server-start

In another terminal:

$ tmacswrap    # this starts tmacswrap in your terminal

You should see a terminal title like tmacswrap(/home/user)

# ssh a little bit around

$ ssh [email protected]
$ ssh [email protected]
$ ssh [email protected]

# su to some user
$ su

On a this shell (it's build for bash) press Ctrl-t t. That should install the 'tmacs' command as a function in your current shell session.

$ tmacs -t some_text_file.txt   # this should open your local emacsclient

Usage

C-t t : Installs the tmacs command

# starts local emacsclient to use with tramp

$ tmacs <file>
 
# tunnels file through terminal and starts local emacsclient
# this is the really useful thing, if tramp is not a real option
$ tmacs -t <file>

Customize

You are probably using vi or some other weird non-emacs-editor, but this tool should be relatively easy to customize. Just find the calls to emacsclient and change them to use your editor.

tmacs's People

Contributors

thraen avatar netlution-mmolle avatar mokrates avatar

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.