Skip to content

xxzgc/prelude-personal

Repository files navigation

prelude-personal

My prelude customisations

Installation

You first need to install Emacs Prelude. Then you can clone the prelude personal repository:

$ rm -rf $PATH_TO_PRELUDE/personal
$ git clone --recursive git@github.com:taryk/prelude-personal.git $PATH_TO_PRELUDE/personal

After that, you can create symbolic links for the following files:

$ ln -s $PATH_TO_PRELUDE/personal/modules/prelude-modules.el $PATH_TO_PRELUDE/prelude-modules.el
$ ln -s $PATH_TO_PRELUDE/personal/modules/prelude-pinned-packages.el $PATH_TO_PRELUDE/prelude-pinned-packages.el

Dependencies

A list of external programs used

  • ag
  • ctags
  • markdown
  • perlbrew
  • marked

Install them

$ brew install ctags ag markdown
$ cpanm App::perlbrew
$ npm install -g marked

Emacs packages

The following Emacs packages get installed automatically on startup:

Keymap

Default prelude keymap can be found here.

highlight-symbol

Keybinding Function Description
C-F3 highlight-symbol Toggle highlighting of the symbol at point
F3 highlight-symbol-next Jump to the next location of the symbol at point within the buffer
S-F3 highlight-symbol-prev Jump to the previous location of the symbol at point within the buffer
M-F3 highlight-symbol-query-replace Replace the symbol at point with REPLACEMENT

helm-git-grep

Keybinding Function Description
C-x C-g helm-git-grep Helm git grep
C-c C-g helm-git-grep-at-a-point Helm git grep with symbol at point

perspective

Keybinding Description
M-p l Last perspective
M-p i Open a perspective with ielm
M-p n Open a perspective with notes

resizing windows

Keybinding Function Description
M-s-up enlarge-window Make the current window taller
M-s-down shrink-window Make the current window shorter
M-s-left shrink-window-horizontally Make the current window narrower
M-s-right enlarge-window-horizontally Make the current window wider