AxxL / dot_emacs

.emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dot-emacs is my personal .emacs for Emacs 24 on Windows.

Files

  • init.el: The main file located at ~/.emacs.d/init.el
  • custom.el: customizations by M-x customize
  • init_emacs_basic.el: Basic customizations for every mode
  • init_emacs_js.el: Customizations especially for JavaScript editing

Usage

The init.el file contains some additional lines for stuff that I’m still testing. In the end this file should contain at least this lines:

;; Load external files
(setq custom-file "~/.emacs.d/custom.el")
(load custom-file)

(load "~/.emacs.d/init_emacs_basic.el")

(load "~/.emacs.d/init_emacs_js.el")

That loads the three additional files: custom.el which is used by the customization functionality of Emacs ((load custom file)), init_emacs_basic.el and init_emacs_js.el.

Modes used

I use a lot of modes that have been accumulated over the years. I threw away some modes, and I’m still testing and I bet I will use some other modes in the future. Anyway, I think this list is nearly complete. Most packages are available from MELPA.

Internal modes:

  • electric-pair-mode
  • icomplete-mode
  • subword-mode

Own functions

I got these functions from various sources in the net. Thanks!

  • query-replace-in-open-buffers
  • duplicate-line
  • pretty-print-json
  • pretty-print-xml-region
  • dev-studio-beginning-of-line
  • what-face
  • replace-html-anti-chars-region
  • increment-number-at-point and decrement-number-at-point
  • wikipedia-lookup and other lookups.

Things I’ve switched off

  • tool bar mode
  • scroll bar mode

Customizations

  • ERC
  • easymenu
  • Diary
  • ASPELL
  • flymake with JSHint (node.js)

Extra keys

  • C-tab: other-window
  • C-M-ß: indent-region (It’s nearly impossible on german keyboard layouts to hit C-M-\. This is somehow an equivalent keystroke.)
  • C-c d: duplicate-line
  • C-f11: browse-url-of-file
  • f11: nav-toggle
  • C-S-c C-S-c: mc/edit-lines
  • C-d: mc/mark-next-like-this
  • C-S-d: mc/mark-previous-like-this
  • In js-mode: C-c C-n: flymake-goto-next-error

Things I’ve quit

  • Mumamo and HTML/JavaScript modes.
  • Slime

External stuff

Modes that I don’t use anymore

Link

https://github.com/AxxL/dot_emacs

About

.emacs


Languages

Language:Emacs Lisp 75.5%Language:YASnippet 15.6%Language:CSS 9.0%