Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/matman26/emacs-config

My configuration files for evil-mode emacs in org-mode format
https://github.com/matman26/emacs-config

Last synced: about 2 months ago
JSON representation

My configuration files for evil-mode emacs in org-mode format

Awesome Lists containing this project

README

        

#+STARTUP: showall
* My emacs literate configuration file
My config requires evil-mode, org-mode and use-package. If you want to use it,
make sure you have at least previously installed use-package. A minimal working ~/.emacs can
look like this:

#+BEGIN_SRC emacs-lisp
;; Change to your .emacs.d/ directory accordingly
(setq user-emacs-directory "/home/trajanus/.emacs.d")
(require 'package)
(require 'use-package)

(package-initialize)
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(add-to-list 'package-archives '("melpa" . "http://stable.melpa.org/packages/"))

(use-package org
:ensure t)

(use-package evil
:ensure t
:config
(evil-mode 1))

;; Change to the path where you cloned the config to
(org-babel-load-file "/home/trajanus/.emacs.d/myinit.org")
#+END_SRC

** Utility Cheat Sheet
|---------+-----------------------------------+-------------------|
| Key | Function | Evil Equivalent |
|---------+-----------------------------------+-------------------|
| C-x C-w | Write Current Buffer | :write |
| C-x C-s | Save Current Buffer | :write |
| C-x s | Save all open Buffers | |
| C-x b | Switch Buffers | :buffer |
| C-x i | Copy file to current buffer | :read |
| C-x k | Kill Buffer | :quit |
| C-g | Abort commands | |
| C-h t | Emacs basic Tutorial | |
| C-h f | Describe Function by name | |
| C-h v | Describe Variable by name | |
| C-h c | Describe the Function a key calls | |
| C-h m | Get mode-specific information | |
| M-x | Emacs Function Call | |
| C-x C-c | Exit Emacs | |
|---------+-----------------------------------+-------------------|

* Emacs runit service
If you are on a Linux distribution which uses runit, you can also use
my runit service for running Emacs in server mode.

Before doing so, you should change the owner of the emacs service by
changing "trajanus" to the name of your user on the run scripts at
sv/emacs/ and sv/emacs/log/. Notice you can also change the path
inside the script sv/emacs/log/run to move your server logs to
another directory.

Once that is done, you can enable the service by symlinking the
folder sv/emacs to your /var/service/ directory.

#+BEGIN_SRC bash
ln -s ${PWD}/sv/emacs /var/service/
#+END_SRC

The logging allows you to troubleshoot if you find any issues, so do
leave it enabled if you are setting it up for the first time. Once
that is done, you can add something like this to your rc.local file:

#+BEGIN_SRC bash
export EDITOR="emacsclient -nc"
#+END_SRC

To use the graphical emacs client as your default editor,
it may be necessary to also run the command:

#+BEGIN_SRC bash
xhost +
#+END_SRC