Git Product home page Git Product logo

quick-find-el's Introduction

quick-find.el

Tiny framework to facilitate quickly jumping to custom-defined directories (both locally and remote locations).

Define names and corresponding directories as follows:

(setq quick-find-name2dir '(("emacs.d" . "~/.emacs.d")
                            ("home" . "~/")
                            ("remote/hostname" . "/ssh:<user>@<hostname>:/home/<user>/")))

The following two interactive functions are defined:

quick-find-file

Prompts you with a list of names (as defined in quick-find-name2dir) to choose from, and runs find-file in the directory corresponding to the chosen name.

quick-find-file-as-root

Prompts you with a list of names (as defined in quick-find-name2dir) to choose from, and runs find-file in the directory corresponding to the chosen name but with a prefix so that any file you open is opened as root.

quick-find-shell

Open new shell in chosen directory.

setting up

Clone this repo in ~/.emacs.d/

git clone https://github.com/paulodder/quick-find-el

Add path to that repo to your load-path variable

(add-to-list 'load-path "~/.emacs.d/quick-find-el")
(require quick-find)

key-bindings

I chose the following key-bindings, but see what works for you

quick-find-fileC-x C-j
quick-find-file-as-rootC-x C-M-j

quick-find-el's People

Contributors

paulodder avatar

Stargazers

siem teusink avatar

Watchers

 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.