diff --git a/emacs.html b/emacs.html index d1586b8..8c44c03 100644 --- a/emacs.html +++ b/emacs.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + @@ -232,206 +232,207 @@ for the JavaScript code in this tag.

Table of Contents

-Toms Emacs Config - portable - version (20180214.01) -*-emacs-lisp-*- +Toms Emacs Config - portable - version (20181001.01) -*-emacs-lisp-*-

-
-

1 Introduction

+
+

1 Introduction

This is my emacs config, it is more than twenty years old. It @@ -485,11 +486,11 @@ outshine-to-html, written by myself, see below.

-
-

2 Config Log, Trivia, Notes, Changes

+
+

2 Config Log, Trivia, Notes, Changes

-
-

2.1 Changelog

+
+

2.1 Changelog

20160420.03: @@ -1594,26 +1595,27 @@ didn't know about it before

  • added ediff config
  • +
  • fixed ob-sh to ob-shell

-20180213.01 +20180730.01

    -
  • use .ssh/config for tramp completion only
  • +
  • added autoscratch-reset-default-directory t

-20180214.01 +20181001.01

    -
  • added umlaute-weg function
  • +
  • fixed magit log dates
-
-

2.2 TODO

+
+

2.2 TODO

-
-

2.3 Parking Lot / Snippets

+
+

2.3 Parking Lot / Snippets

Snippets which maybe of use in the future

-
-

2.3.1 buffer-local hook

+
+

2.3.1 buffer-local hook

(with-current-buffer (get-buffer "scratch") @@ -1650,8 +1652,8 @@ Snippets which maybe of use in the future

-
-

2.4 .emacs config version

+
+

2.4 .emacs config version

My emacs config has a version (consisting of a timestamp with a @@ -1659,7 +1661,7 @@ serial), which I display in the mode line. So I can clearly see, if I'm using an outdated config somewhere.

-
(defvar tvd-emacs-version "20180214.01")
+
(defvar tvd-emacs-version "20181001.01")
 
@@ -1668,11 +1670,11 @@ I'm using an outdated config somewhere.
-
-

3 System Specifics

+
+

3 System Specifics

-
-

3.1 Global init file+dir vars, portable

+
+

3.1 Global init file+dir vars, portable

  • added dev function which opens a new development frame
  • @@ -1710,10 +1712,30 @@ all modes and extensions are located here
-
-

3.2 Fontlock-mode - use syntax highlighting on graphical displays

+
+

3.2 Shortcut Mode - mode specific help about my own customizations

+FIXME: complete +

+ +
+
(defun add-shortcut (mode help)
+  (add-to-list 'shortcut-alist '(mode . help)))
+
+(defun shortcut ()
+  (interactive)
+  (message (cdr (assoc major-mode 'shortcut-alist))))
+
+
+ +
+
+
+
+

3.3 Fontlock-mode - use syntax highlighting on graphical displays

+
+

look: emacswiki

@@ -1728,9 +1750,9 @@ look: emacswiki
-
-

3.3 line-cursor in console

-
+
+

3.4 line-cursor in console

+

better visibility of cursor in console sessions

@@ -1745,9 +1767,9 @@ better visibility of cursor in console sessions
-
-

3.4 Backup Config

-
+
+

3.5 Backup Config

+

I save backup files in a central location below the init dir, that way they don't clutter productive file systems or repos. @@ -1817,9 +1839,9 @@ This is system specific and only matches special host names.


-
-

3.5 console backspace fix

-
+
+

3.6 console backspace fix

+

make backspace work in console sessions

@@ -1831,9 +1853,9 @@ make backspace work in console sessions
-
-

3.6 hide menu- and tool-bar

-
+
+

3.7 hide menu- and tool-bar

+

I prefer a bare bones emacs window without any distractions, so turn them off.

@@ -1848,9 +1870,9 @@ I prefer a bare bones emacs window without any distractions, so turn them off.
-
-

3.7 stay silent on startup

-
+
+

3.8 stay silent on startup

+
(setq initial-scratch-message "")
 (setq inhibit-startup-message t)
@@ -1862,9 +1884,9 @@ I prefer a bare bones emacs window without any distractions, so turn them off.
 
-
-

3.8 y means yes

-
+
+

3.9 y means yes

+

y is shorter than yes and less error prone.

@@ -1876,9 +1898,9 @@ y is shorter than yes and less error prone.
-
-

3.9 show col in modeline

-
+
+

3.10 show col in modeline

+

very useful to know current column

@@ -1890,9 +1912,9 @@ very useful to know current column
-
-

3.10 file or buffer in title

-
+
+

3.11 file or buffer in title

+

this can be seen in xmobar

@@ -1905,9 +1927,9 @@ this can be seen in xmobar
-
-

3.11 avoid invalid files

-
+
+

3.12 avoid invalid files

+
(setq require-final-newline t)
 
@@ -1916,9 +1938,9 @@ this can be seen in xmobar
-
-

3.12 prepare load-path

-
+
+

3.13 prepare load-path

+

where to look for extensions:

@@ -1945,9 +1967,9 @@ modules
-
-

3.13 byte-compile all of them, if needed

-
+
+

3.14 byte-compile all of them, if needed

+

handy function to recompile all lisp files

@@ -1961,9 +1983,9 @@ handy function to recompile all lisp files
-
-

3.14 increase fontsize with ctrl-+ and ctrl--

-
+
+

3.15 increase fontsize with ctrl-+ and ctrl--

+

I use those bindings everywhere (firefox, terminal, etc), and in emacs as well. @@ -1988,12 +2010,12 @@ emacs as well.


-
-

3.15 WINDOW management stuff

-
-
-

3.15.1 resize windows by keyboard

-
+
+

3.16 WINDOW management stuff

+
+
+

3.16.1 resize windows by keyboard

+

Very practical: resize windows easily.

@@ -2009,9 +2031,9 @@ hit C-c C-r then use cursor keys to resize, <ret> to finish
-
-

3.15.2 switch windows with MS-WINDOWS key

-
+
+

3.16.2 switch windows with MS-WINDOWS key

+
(require 'windmove)
 (windmove-default-keybindings 'super)
@@ -2021,9 +2043,9 @@ hit C-c C-r then use cursor keys to resize, <ret> to finish
 
-
-

3.15.3 M-o switch window or buffer

-
+
+

3.16.3 M-o switch window or buffer

+

via mbork

@@ -2100,9 +2122,9 @@ Use only in X11 emacs - setting M-O inside console causes <up> and
-
-

3.15.4 Split window to 4 parts

-
+
+

3.16.4 Split window to 4 parts

+
(defun tvd-quarter-windows ()
   (interactive)
@@ -2119,9 +2141,9 @@ Use only in  X11 emacs - setting M-O inside console  causes <up> and
 
-
-

3.15.5 Remember and Restore Window Configurations - winner mode

-
+
+

3.16.5 Remember and Restore Window Configurations - winner mode

+
(winner-mode 1)
 
@@ -2135,9 +2157,9 @@ keybindings: C-c right - winner-redo
-
-

3.16 re-read a modified buffer

-
+
+

3.17 re-read a modified buffer

+

F5 == reload file if it has been modified by another process, shift because Xmonad @@ -2161,9 +2183,9 @@ because Xmonad


-
-

3.17 global TAB/Indent config

-
+
+

3.18 global TAB/Indent config

+

I use spaces everywhere but Makefiles. If I encounter TABs I replace them with spaces, if I encounter users entering TABs into @@ -2202,9 +2224,9 @@ Use normal tabs in makefiles


-
-

3.18 handy aliases

-
+
+

3.19 handy aliases

+

M-x q r <ret> is short enough for me, no need for key bindings for those @@ -2234,9 +2256,9 @@ those


-
-

3.19 various settings

-
+
+

3.20 various settings

+

point stays while scrolling

@@ -2288,9 +2310,9 @@ I'm grown up!
-
-

3.20 load imenu

-
+
+

3.21 load imenu

+
(define-key global-map [C-down-mouse-2] 'imenu)
 
@@ -2299,9 +2321,9 @@ I'm grown up!
-
-

3.21 copy/paste Config

-
+
+

3.22 copy/paste Config

+

Related:

@@ -2367,9 +2389,9 @@ marked region automatically copied, also on win
-
-

3.22 use more mem

-
+
+

3.23 use more mem

+

are you from the past?

@@ -2381,9 +2403,9 @@ are you from the past?
-
-

3.23 better file name completion

-
+
+

3.24 better file name completion

+

Complete filenames case insensitive and ignore certain files during completion.

@@ -2412,9 +2434,9 @@ via -

3.24 abbreviations

-
+
+

3.25 abbreviations

+

Do I really need those anymore? Added ca 1999…

@@ -2443,9 +2465,9 @@ do NOT ask to save abbrevs on exit
-
-

3.25 meaningful names for buffers with the same name

-
+ -
-

3.26 packages

-
+
+

3.27 packages

+

I dont need it all the time and only for experimentation, so lets only use melpa on demand @@ -2486,9 +2508,9 @@ only use melpa on demand


-
-

3.27 My own global variables

-
+
+

3.28 My own global variables

+

narrowed fringe background

@@ -2500,12 +2522,12 @@ narrowed fringe background
-
-

3.28 More scratch space

-
-
-

3.28.1 Text scratch

-
+
+

3.29 More scratch space

+
+
+

3.29.1 Text scratch

+

Sometimes I need a text mode scratch buffer while scratch is already in use. So let's prepare one. I also add a buffer hook so that @@ -2520,9 +2542,9 @@ this never gets deleted, but cleaned instead.

-
-

3.28.2 Autoscratch

-
+
+

3.29.2 Autoscratch

+

use autoscratch otherwise autoscratch github @@ -2542,7 +2564,8 @@ use autoscratch otherwise ("/" . (c-mode)) ("*" . (progn (insert " ") (org-mode))) ("." . (fundamental-mode))) - autoscratch-trigger-on-first-char t) + autoscratch-trigger-on-first-char t + autoscratch-reset-default-directory t) (electric-indent-local-mode nil) )) (defalias 'scratch 'autoscratch-buffer) @@ -2551,9 +2574,9 @@ use autoscratch otherwise

-
-

3.28.3 Persistent Scratch

-
+
+

3.29.3 Persistent Scratch

+

I also like to be scratch buffers persistent with persistent-scratch @@ -2574,9 +2597,9 @@ I also like to be scratch buffers persistent with

-
-

3.29 Recenter config

-
+
+

3.30 Recenter config

+

via abo abo

@@ -2596,13 +2619,13 @@ I think this is a recenter calculation bug.
-
-

4 Global Key Bindings

+
+

4 Global Key Bindings


-
-

4.1 c-h != delete

+
+

4.1 c-h != delete

(keyboard-translate ?\C-h ?\C-?)
@@ -2613,8 +2636,8 @@ I think this is a recenter calculation bug.
 
-
-

4.2 general keys (re-)mappings

+
+

4.2 general keys (re-)mappings

(global-set-key (kbd "C-s") 'isearch-forward-regexp) @@ -2644,8 +2667,8 @@ I think this is a recenter calculation bug.


-
-

4.3 display a list of my own global key bindings and aliases

+
+

4.3 display a list of my own global key bindings and aliases

via emacswiki @@ -2722,13 +2745,13 @@ more help with: describe-function occur-mode

-
-

5 Productivity Functions

+
+

5 Productivity Functions


-
-

5.1 goto line with tmp line numbers

+
+

5.1 goto line with tmp line numbers

I stole this somewhere, as far as I remember, emacswiki, however, I @@ -2752,8 +2775,8 @@ always had F7 for goto-line


-
-

5.2 invert fore- and background

+
+

5.2 invert fore- and background

Sometimes when sitting in a very dark enviroment, my usual light @@ -2796,8 +2819,8 @@ fast


-
-

5.3 Some useful bindings for Home and End keys Hit the key once to

+
+

5.3 Some useful bindings for Home and End keys Hit the key once to

Go to the beginning/end of a line, hit it twice in a row to go to @@ -2861,8 +2884,8 @@ This is the most natural use for those keys


-
-

5.4 percent function

+
+

5.4 percent function

by Jens Heunemann: jump to percent position into current buffer @@ -2883,8 +2906,8 @@ by Jens Heunemann: jump to percent position into current buffer


-
-

5.5 Simulate vi's % function

+
+

5.5 Simulate vi's % function

There's not a lot about vi[m] I like, but jumping with % to a @@ -2916,8 +2939,8 @@ just insert a literal ?%. Only make sense if bound to %.


-
-

5.6 Move region

+
+

5.6 Move region

Mark a region, then use M-up|down to move it around @@ -3016,8 +3039,8 @@ code from -

5.7 comment-uncomment region with one key binding

+ -
-

5.8 search for symbol at point

+
+

5.8 search for symbol at point

Simulate the # function of vi, marks the symbol at point, C-s then @@ -3084,8 +3107,8 @@ via ergomacs


-
-

5.9 Window Margin

+
+

5.9 Window Margin

Kinda screen reader for the poor. I use this sometimes with info @@ -3111,8 +3134,8 @@ left+right margin on demand (but nothing else)


-
-

5.10 Fill and justify a paragraph

+
+

5.10 Fill and justify a paragraph

this is just a shortcut for: @@ -3141,8 +3164,8 @@ idea via: -

5.11 Make a read-only copy of the current buffer

+
+

5.11 Make a read-only copy of the current buffer

I just create a new read-only buffer and copy the contents of the @@ -3191,8 +3214,8 @@ a file is not maintained via VC anyway.


-
-

5.12 Cleanup, close all windows and kill all buffers

+
+

5.12 Cleanup, close all windows and kill all buffers

From time to time I get annoyed by the many dozen buffers @@ -3225,8 +3248,8 @@ setup accidentally.


-
-

5.13 Cleanup current buffer

+
-
-

5.14 Remove Umlauts and other crab in current buffer

+
+

5.14 Remove Umlauts and other crab in current buffer

converts: @@ -3301,8 +3324,8 @@ used in dired buffers to cleanup filenames by german windows users.


-
-

5.15 Better newline(s)

+
+

5.15 Better newline(s)

Add newline and jump to indent from wherever I am in the current @@ -3345,8 +3368,8 @@ disabled, interferes with modes.


-
-

5.16 Mouse Rectangle

+
-
-

5.17 DOS <=> UNIX conversion helpers

+
+

5.17 DOS <=> UNIX conversion helpers

(defun dos2unix ()
@@ -3391,12 +3414,11 @@ via stackoverflow
   (message (format "converted current buffer to %s" buffer-file-coding-system)))
 
-
-
-

5.18 helper do add the same thing to multiple mode hooks

+
+

5.18 helper do add the same thing to multiple mode hooks

via stackoverflow @@ -3414,8 +3436,8 @@ usage samples below.

-
-

5.19 helper to catch load errors

+
+

5.19 helper to catch load errors

Try to eval 'fn, catch errors, if any but make it possible for @@ -3437,8 +3459,8 @@ emacs to continue undisturbed, used with SMEX, see below.


-
-

5.20 Alignment Wrappers

+
+

5.20 Alignment Wrappers

align-regexp is already a very usefull tool, however, sometimes I @@ -3488,8 +3510,8 @@ wrappers to make this easier.

-
-

5.21 String Helpers

+
+

5.21 String Helpers

Some helper functions I use here and there. @@ -3528,14 +3550,14 @@ Some helper functions I use here and there.

-
-

6 Modes

+
+

6 Modes

-
-

6.1 Programming Languages

+
+

6.1 Programming Languages

-
-

6.1.1 VALA

+
+

6.1.1 VALA

(autoload 'vala-mode "vala-mode" "Major mode for editing Vala code." t)
@@ -3550,8 +3572,8 @@ Some helper functions I use here and there.
 
-
-

6.1.2 python mode

+
+

6.1.2 python mode

Not much configured for python, I'm happy with the defaults as it seems :) @@ -3579,8 +3601,8 @@ Not much configured for python, I'm happy with the defaults as it seems :)

-
-

6.1.3 cperl mode

+
+

6.1.3 cperl mode

I am a perl addict. I love it, therefore, emacs must be prepared @@ -3727,8 +3749,8 @@ and hook them into cperl

-
-

6.1.4 Paredit for lisp only

+
+

6.1.4 Paredit for lisp only

I use paredit in lisp a lot, but are mostly happy with the defaults. @@ -3771,8 +3793,8 @@ sometimes I need to be able to turn it off fast:

-
-

6.1.5 ETAGS

+
+

6.1.5 ETAGS

I use ETAGS for some projects. With etags I can easily jump to the @@ -3849,11 +3871,11 @@ some handy aliases

-
-

6.2 Text Modes

+
+

6.2 Text Modes

-
-

6.2.1 sgml

+
+

6.2.1 sgml

Used for XML and the likes. @@ -3880,8 +3902,8 @@ Used for XML and the likes.

-
-

6.2.2 web-mode (JS, HTML, CSS combined)

+
+

6.2.2 web-mode (JS, HTML, CSS combined)

Web development is shit. Tech involved is a mess, and in most cases @@ -3975,8 +3997,8 @@ convert a text list into a html list.

-
-

6.2.3 Cisco Mode

+
+

6.2.3 Cisco Mode

Written by myself many years ago, but I'm still using it daily to @@ -3994,8 +4016,8 @@ view and prepare cisco configs.

-
-

6.2.4 Markdown

+
+

6.2.4 Markdown

I rarely use markdown, but sometimes I stumble upon such a file and @@ -4031,8 +4053,8 @@ parens and quotes constraints check on save

-
-

6.2.5 POD mode

+
+

6.2.5 POD mode

I LOVE POD! POD is the documentation format of perl and there's a @@ -4166,8 +4188,8 @@ pod mode config


-
-

6.2.6 conf-mode

+
+

6.2.6 conf-mode

conf-mode annoyingly overwrites the global keybinding C-c C-c with @@ -4188,10 +4210,10 @@ configs. Applies for derivates as well.

-
-

6.2.7 Config::General mode

+
+

6.2.7 Config::General mode

-
  1. Config and doc
    +
    1. Config and doc

      config-general-mode (also on Melpa).

      @@ -4210,7 +4232,7 @@ both did not satisfy me. Now (as of 20170625) I solved this mess once and for al
-
  • Convenicence Wrappers
    +
  • Convenicence Wrappers
    (defun config-general-completion-at-point ()
       "Complete word at point using hippie-expand, if not on a comment."
    @@ -4310,7 +4332,7 @@ Bugreport: http://d
     
  • -
  • Mode Hook
    +
  • Mode Hook

    I use TAB for completion AND tab and outshine. Also, the mode enables electric indent automatically, but I disabled it for @@ -4359,8 +4381,8 @@ for config-general-mode (which inherits from conf-mode).


  • -
    -

    6.2.8 Xmodmap Mode

    +
    +

    6.2.8 Xmodmap Mode

    the shortest mode ever, via emacswiki. @@ -4383,10 +4405,10 @@ the shortest mode ever, vi

    -
    -

    6.2.9 MMM Mode

    +
    +

    6.2.9 MMM Mode

    -
    1. MMM configure:
      +
      1. MMM configure:
        (add-to-list 'load-path (concat tvd-lisp-dir "/mmm-mode"))
         
        @@ -4405,7 +4427,7 @@ see doc for class definition in var 'mmm-classes-alist
         

      2. -
      3. MMM config for POD mode
        +
      4. MMM config for POD mode
        (mmm-add-classes
          '((html-pod
        @@ -4423,11 +4445,11 @@ see doc for class definition in var 'mmm-classes-alist
         
        -
        -

        6.3 Text Manupilation

        +
        +

        6.3 Text Manupilation

        -
        -

        6.3.1 expand-region

        +
        +

        6.3.1 expand-region

        One of the best modes I ever discovered. Press C-= multiple times @@ -4446,8 +4468,8 @@ related to ER:

        -
        -

        6.3.2 Mark, Copy, Yank Things

        +
        +

        6.3.2 Mark, Copy, Yank Things

        For a long time this stuff was located here in my emacs config. As @@ -4550,8 +4572,8 @@ it appears as NNN,NN.

        -
        -

        6.3.3 change-inner

        +
        +

        6.3.3 change-inner

        I use change-inner with a prefix key and some wrappers around @@ -4673,8 +4695,8 @@ typing the prefix key twice calls the real change-inner


        -
        -

        6.3.4 Rotate text

        +
        +

        6.3.4 Rotate text

        This one is great as well, I use it to toggle flags and such stuff @@ -4730,8 +4752,8 @@ short command anymore, so C-t would be free now, wouldn't it?

        -
        -

        6.3.5 Word wrapping

        +
        +

        6.3.5 Word wrapping

        same as word-wrap but without the fringe which I hate the most! @@ -4753,8 +4775,8 @@ overwritten by visual-line-mode above for specifics

        -
        -

        6.3.6 Viking Mode

        +
        +

        6.3.6 Viking Mode

        Delete stuff fast. Press the key multiple times - delete more @@ -4772,8 +4794,8 @@ things. Inspired by expand-region. Written by myself.

        -
        -

        6.3.7 HTMLize

        +
        +

        6.3.7 HTMLize

        extracted from debian package emacs-goodies-el-35.2+nmu1, since @@ -4790,8 +4812,8 @@ the current buffer, however it looks.

        -
        -

        6.3.8 iEdit (inline edit multiple searches)

        +
        +

        6.3.8 iEdit (inline edit multiple searches)

        Edit all occurences of something at once. Great for re-factoring. @@ -4832,11 +4854,11 @@ behavior, so, I modify it myself using defadvice.

        -
        -

        6.4 Interactives

        +
        +

        6.4 Interactives

        -
        -

        6.4.1 eShell stuff, or if interactive stuff is needed, use ansi-term

        +
        +

        6.4.1 eShell stuff, or if interactive stuff is needed, use ansi-term

        I am a hardcore bash user, but from time to time eshell is good @@ -5116,8 +5138,8 @@ no need for less or more, this is emacs, isn't it?

        -
        -

        6.4.2 Emacs LISP interactive

        +
        +

        6.4.2 Emacs LISP interactive

        General configuration for all things elisp. @@ -5328,8 +5350,8 @@ opens a new frame with all those buffers already opened and pinned.


        -
        -

        6.4.3 el2markdown

        +
        +

        6.4.3 el2markdown

        el2markdown is a module which @@ -5353,12 +5375,11 @@ README.md. Take care though: it doesn't convert the META section.

        -
        -

        6.4.4 tramp mode

        +
        +

        6.4.4 tramp mode

        Edit remote files, one of the best things in emacs. I use it every day heavily. -also note: hitting : during C-f enters tramp host selection, see IDO above

        @@ -5375,15 +5396,6 @@ doku: gnu.org

        -

        -don't use knownhosts stuff, shorter list, less crab -

        -
        -
        (tramp-set-completion-function "ssh"
        -                               '((tramp-parse-sconfig "~/.ssh/config")))
        -
        -
        -

        see also backup section

        @@ -5392,8 +5404,8 @@ see also backup section
        -
        -

        6.4.5 org mode

        +
        +

        6.4.5 org mode

        I use org mode to take notes mostly at work. I also track projects @@ -5420,7 +5432,7 @@ enable syntax highlighting for embedded source blocks

        (require 'ob-python)
         (require 'ob-perl)
        -(require 'ob-sh)
        +(require 'ob-shell)
         
         (setq org-bullets-bullet-list '("►" "✜" "✸" "✿" "♦"))
         
        @@ -5707,8 +5719,8 @@ always use the latest docs
        -
        -

        6.4.6 org table mode

        +
        +

        6.4.6 org table mode

        I'm so used to lovely org mode tables, I need them everywhere! @@ -6022,8 +6034,8 @@ integers, reals, positives, set via custom

        -
        -

        6.4.7 org mode slideshows

        +
        +

        6.4.7 org mode slideshows

        Making presentations within emacs with org mode is cool as well. @@ -6131,8 +6143,8 @@ Will be inserted as first help slide in a slide show


        -
        -

        6.4.8 outshine mode

        +
        +

        6.4.8 outshine mode

        I maintain my emacs config with outshine mode. It works a lot like @@ -6312,8 +6324,8 @@ posting online, which makes it way easier to read.

        -
        -

        6.4.9 outline mode

        +
        +

        6.4.9 outline mode

        I use the very same cycle style as in org mode: when on a heading, @@ -6410,8 +6422,8 @@ orange fringe when narrowed


        -
        -

        6.4.10 narrowing (no mode but fits here)

        +
        +

        6.4.10 narrowing (no mode but fits here)

        I use narrowing quite frequently, so here are some enhancements. @@ -6451,8 +6463,8 @@ via -

        6.4.11 ANSI-TERM (inferior shells/interpreters and REPLs)

        +
        +

        6.4.11 ANSI-TERM (inferior shells/interpreters and REPLs)

        I use ansi term for inferior shells only. @@ -6568,8 +6580,8 @@ finally the inferior REPLs:

        -
        -

        6.4.12 Puppet

        +
        +

        6.4.12 Puppet

        adds hook for .pp files @@ -6583,8 +6595,8 @@ adds hook for .pp files

        -
        -

        6.4.13 Novel Mode - Screen Reader

        +
        +

        6.4.13 Novel Mode - Screen Reader

        my own emacs screen reader, very handy to read docs on the road. @@ -6600,8 +6612,8 @@ my own emacs screen reader, very handy to read docs on the road.

        -
        -

        6.4.14 Macro Math

        +
        +

        6.4.14 Macro Math

        see macro-math @@ -6624,8 +6636,8 @@ mark something and hit C-x C-0 (which is a reminder to C-x C-= w/o the shift)

        -
        -

        6.4.15 Common-Lisp (SLIME)

        +
        +

        6.4.15 Common-Lisp (SLIME)

        I'm learing CL with slime, start with M-x slime. @@ -6658,8 +6670,8 @@ INSTALL: (see: -

        6.4.16 INFO Mode

        +
        +

        6.4.16 INFO Mode

        (require 'info)
        @@ -6723,8 +6735,8 @@ contains (interactive) code from 'info-display-manual for manual selection.
         
        -
        -

        6.4.17 calc et al.

        +
        +

        6.4.17 calc et al.

        emacs provides 4 ways to calculate: @@ -6774,8 +6786,8 @@ or, inferior perl calc: M-x icalc, see above

        -
        -

        6.4.18 MACROs

        +
        +

        6.4.18 MACROs

        help: emacswiki macro tricks. @@ -6988,8 +7000,8 @@ but only load if in use


        -
        -

        6.4.19 EWW browser stuff

        +
        +

        6.4.19 EWW browser stuff

        Emacs has a builtin browser, which is not too bad. @@ -7057,8 +7069,8 @@ hides menus and distractions! Update emacs.


        -
        -

        6.4.20 Firestarter

        +
        +

        6.4.20 Firestarter

        experimental: do things on save buffer etc. @@ -7067,8 +7079,8 @@ Source: firestarter

        -
        -

        6.4.21 Tabulated List Mode

        +
        +

        6.4.21 Tabulated List Mode

        built-in, used by many interactive major modes @@ -7116,8 +7128,8 @@ we need to kill tablist's binding in order to have ours run (see below)

        -
        -

        6.4.22 Help Mode

        +
        +

        6.4.22 Help Mode

        I even customize help windows! … at least a little :) @@ -7140,8 +7152,8 @@ I even customize help windows! … at least a little :)

        -
        -

        6.4.23 Suggest Mode

        +
        +

        6.4.23 Suggest Mode

        suggest mode is a great @@ -7191,8 +7203,8 @@ I use my own clearing function, since suggest doesn't provide this

        -
        -

        6.4.24 Followcursor Mode

        +
        +

        6.4.24 Followcursor Mode

        source on github @@ -7221,8 +7233,8 @@ The mode is a work-in-progress… -

        -

        6.4.25 Magit

        +
        +

        6.4.25 Magit

        Not much to say about Magit @@ -7259,6 +7271,7 @@ Not much to say about Magit (when (file-exists-p dir) (add-to-list 'magit-repository-directories (cons dir 1)))) (setq magit-completing-read-function 'magit-ido-completing-read) + (setq magit-log-margin '(t "%d-%m-%Y %H:%M" magit-log-margin-width t 18)) ;; navigate magit buffers as I do everywhere else, I do not automatically ;; cycle/decycle though, the magit defaults are absolutely sufficient. (define-key magit-mode-map (kbd "<C-down>") 'magit-section-forward-sibling) @@ -7301,8 +7314,8 @@ Not much to say about Magit


        -
        -

        6.4.26 Dired

        +
        +

        6.4.26 Dired

        I use dired for two things: from inside magit as a convenient way @@ -7320,7 +7333,7 @@ tune this as well.

        -
        1. dired-k
          +
          1. dired-k

            dired-k is k for dired/emacs: it colorizes files and directory by age, that is, the older the greyer they get. And it displays flags @@ -7338,7 +7351,7 @@ about the git status of each file, which is really handy.

        2. -
        3. dired-hacks
          +
        4. dired-hacks

          Fuco1s dired-hacks is a place to find the really cool stuff, I mostly use the filters. @@ -7358,7 +7371,7 @@ place to find the really cool stuff, I mostly use the filters.

      5. -
      6. dired sort helpers
        +
      7. dired sort helpers

        This sort function by Xah Lee is easy to use and does what it should, great!, However, I added some -desc @@ -7388,7 +7401,7 @@ sister sorts for reverse sorting.

    -
  • dired git helpers
    +
  • dired git helpers

    via bin chen: make git commands available from dired buffer, which can be used in @@ -7445,7 +7458,7 @@ called with "hydras".

  • -
  • dired navigation
    +
  • dired navigation

    I'm used to jump around with pos1+end

    @@ -7465,7 +7478,7 @@ I'm used to jump around with pos1+end
  • -
  • dired buffer names
    +
  • dired buffer names

    This took me a long time to figure out, but I finally got it: I really hate it how dired names its buffers, it just uses the @@ -7493,7 +7506,7 @@ behavior as a bug, but I doubt many people would agree :)

  • -
  • dired config and key bindings
    +
  • dired config and key bindings

    and finally put everything together.

    @@ -7551,8 +7564,8 @@ and finally put everything together.
    -
    -

    6.4.27 Ediff Config

    +
    +

    6.4.27 Ediff Config

    Force ediff to use 1 frame (the current) and not open a new frame @@ -7602,11 +7615,11 @@ Usage: emacs -diff file1 file2

    -
    -

    6.5 Emacs Interface

    +
    +

    6.5 Emacs Interface

    -
    -

    6.5.1 Parens

    +
    +

    6.5.1 Parens

    display matching braces @@ -7627,8 +7640,8 @@ display matching braces

    -
    -

    6.5.2 highlight todo keywords (such as FIXME)

    +
    +

    6.5.2 highlight todo keywords (such as FIXME)

    Absolutely needed! @@ -7643,8 +7656,8 @@ Absolutely needed!


    -
    -

    6.5.3 UNDO Tree Mode

    +
    +

    6.5.3 UNDO Tree Mode

    Better undo, with redo support. @@ -7687,8 +7700,8 @@ M-_ catched by Xmonad


    -
    -

    6.5.4 Smarter M-x Mode (smex)

    +
    +

    6.5.4 Smarter M-x Mode (smex)

    This is really cool and I don't know how I could ever live without it. @@ -7711,8 +7724,8 @@ fails @win, so wrap it

    -
    -

    6.5.5 Smarter Search

    +
    +

    6.5.5 Smarter Search

    test, replace isearch-forward-regexp first only. @@ -7728,8 +7741,8 @@ dir: ivy/

    -
    -

    6.5.6 Which Func

    +
    +

    6.5.6 Which Func

    display current function - if any - in mode line @@ -7744,8 +7757,8 @@ display current function - if any - in mode line


    -
    -

    6.5.7 Show current-line in the Fringe

    +
    +

    6.5.7 Show current-line in the Fringe

    (require 'fringe-current-line)
    @@ -7764,8 +7777,8 @@ also change the color (matching the mode line
     
    -
    -

    6.5.8 Recent Files

    +
    +

    6.5.8 Recent Files

    You know the file you edited yesterday had "kri" in its name, but @@ -7859,8 +7872,8 @@ exclude some auto generated files

    -
    -

    6.5.9 IDO mode

    +
    +

    6.5.9 IDO mode

    There are other completion enhancement packages available like ivy @@ -8002,8 +8015,8 @@ by howardism: [re]open non-writable file with sudo

    -
    -

    6.5.10 Save cursor position

    +
    +

    6.5.10 Save cursor position

    So the next time I start emacs and open a file I were editing @@ -8024,8 +8037,8 @@ before.

    -
    -

    6.5.11 DoReMi experimentation

    +
    +

    6.5.11 DoReMi experimentation

    I'm not using it a lot, sometimes I tune the background color though. @@ -8054,8 +8067,8 @@ cool ones: doremi-buffers, doremi-all-faces-fg+ [s, h]


    -
    -

    6.5.12 Hightligt TABs

    +
    +

    6.5.12 Hightligt TABs

    not a mode, but however: higlight TABs in certain modes @@ -8078,8 +8091,8 @@ not a mode, but however: higlight TABs in certain modes

    -
    -

    6.5.13 Browse kill-ring

    +
    +

    6.5.13 Browse kill-ring

    when active use n and p to browse, <ret> to select, it's the same @@ -8097,8 +8110,8 @@ as <M-y> and I never really use it…

    -
    -

    6.5.14 goto-last-change

    +
    +

    6.5.14 goto-last-change

    Very handy, jump to last change[s]. @@ -8115,8 +8128,8 @@ Very handy, jump to last change[s].

    -
    -

    6.5.15 Bookmarks

    +
    +

    6.5.15 Bookmarks

    I use the builtin bookmark feature quite a lot and am happy with @@ -8148,8 +8161,8 @@ I use the same aliases as in apparix for bash (since I'm used to them)

    -
    -

    6.5.16 which-key

    +
    +

    6.5.16 which-key

    One of the best unobstrusive modes for key help ever. Just start @@ -8169,8 +8182,8 @@ press from there along with the associated functions.

    -
    -

    6.5.17 iBuffer mode

    +
    +

    6.5.17 iBuffer mode

    iBuffer is a great interactive buffer management tool included with @@ -8380,8 +8393,8 @@ override ibuffer M-o binding

    -
    -

    6.5.18 Printing

    +
    +

    6.5.18 Printing

    overwrites printing default menu, access via menu File => Print @@ -8426,8 +8439,8 @@ via -

    6.5.19 Beacon mode (pointer blink)

    +
    +

    6.5.19 Beacon mode (pointer blink)

    Source: beacon mode @@ -8457,8 +8470,8 @@ editing position.

    -
    -

    6.6 mode-line setup (must be the last mode)

    +
    +

    6.6 mode-line setup (must be the last mode)

    I just append the current version of my emacs config and leave out @@ -8523,13 +8536,13 @@ custom modeline

    -
    -

    7 Emacs Autoconfig / Customizegroup stuff

    +
    +

    7 Emacs Autoconfig / Customizegroup stuff


    -
    -

    7.1 font faces

    +
    +

    7.1 font faces

    Font color config, must always be the last thing so all hook faces are loaded. @@ -8609,8 +8622,8 @@ unless we're on windoze


    -
    -

    7.2 variables

    +
    +

    7.2 variables

    If I ever use custom-group to customize a mode, then I create a @@ -8630,8 +8643,8 @@ here. So, in normal times this should be empty, but needs to exist.

    -
    -

    7.3 done

    +
    +

    7.3 done

    Finally, this message is being displayed. If this isn't the case I @@ -8648,7 +8661,7 @@ know easily that something went wrong.

    Author: Tom

    -

    Created: 2018-02-14 Mi 04:39

    +

    Created: 2018-10-01 Mo 21:11

    Validate