Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/idcrook/prezto-emacs-action

Do things in emacs from terminal (macOS)
https://github.com/idcrook/prezto-emacs-action

emacs zprezto zpreztorc zsh

Last synced: 9 days ago
JSON representation

Do things in emacs from terminal (macOS)

Awesome Lists containing this project

README

        

prezto-emacs-action
===================

Do things in emacs from terminal (macOS).

Switch from in terminal to `magit` or `dired` in *emacs*.

Via https://fosstodon.org/@chmouel/113760902087055976

Install
-------

To use, the module directory needs to be found in `pmodule-dirs`, so e.g. in `zpreztorc`:

```diff
# Add additional directories to load prezto modules from
-# zstyle ':prezto:load' pmodule-dirs $HOME/.zprezto-contrib
+zstyle ':prezto:load' pmodule-dirs $HOME/.zprezto-contrib
```

It could also be placed in `/contrib` or `/modules` which are already in default `pmodule-dirs`.

```shell
cd $HOME/.zprezto-contrib
git clone https://github.com/idcrook/prezto-emacs-action.git emacs-action
# or alternatively
git submodule add https://github.com/idcrook/prezto-emacs-action emacs-action
```

Configure
---------

The module itself (above cloned to be named `emacs-action`) needs to be explicitly loaded in `${ZDOTDIR:-$HOME}/.zpreztorc`

Modules are loaded via `zstyle ':prezto:load' pmodule`

```
'osx' \
'emacs-action' \
```

In mine, I've loaded it after `osx` module.

Aliases
-------

- `magit`
- `dired`

Acknowledgments
---------------

Based on https://fosstodon.org/@chmouel/113760902087055976