From e8d80d05eac72acc2eea9277f2b693bf9708f49d Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Thu, 22 Jun 2017 20:41:46 +0200 Subject: [PATCH] +config-general-mode --- .emacs | 41 ++- emacs.html | 838 ++++++++++++++++++++++++++++------------------------- 2 files changed, 465 insertions(+), 414 deletions(-) diff --git a/.emacs b/.emacs index e4ebdcd..63905dc 100644 --- a/.emacs +++ b/.emacs @@ -405,6 +405,8 @@ ;; * System Specifics ;; ** Global init file+dir vars, portable +;; - Info mode: C-left+C-right history keys + ;; since I always use ~/.emacs as my init file, this results in the ;; correct emacs dir: @@ -1321,6 +1323,8 @@ might be bad." (interactive) (untabify (point-min) (point-max)) (delete-trailing-whitespace) + (save-excursion + (replace-regexp "^\n\\{3,\\}" "\n\n" nil (point-min) (point-max))) (set-buffer-file-coding-system 'utf-8) (indent-region (point-min) (point-max))) @@ -1888,7 +1892,6 @@ col1, col2" (outline-minor-mode) ;; my own abbrevs for POD using mode-specific abbrev table - (defvar pod-abbrev-table nil) (c-define-abbrev-table 'pod-mode-abbrev-table '( ("ov" "=over\n\n=item\n\n=back\n") ("h1" "=head1 ") @@ -1931,6 +1934,14 @@ col1, col2" (electric-indent-local-mode 0)) (add-something-to-mode-hooks '(conf cisco fundamental conf-space pod) 'disarm-conf-mode) +;; -------------------------------------------------------------------------------- + +;; *** Config::General mode + +;; My own mode for Config::General files + +(require 'config-general-mode) +(add-hook 'config-general-mode-hook 'electric-indent-mode) ;; -------------------------------------------------------------------------------- ;; ** Text Manupilation @@ -2360,7 +2371,7 @@ a list symbol describing the command." ;; I like to have some functions fontified differently (font-lock-add-keywords 'emacs-lisp-mode - '(("(\\s-*\\(eq\\|if\\|cond\\|or\\|not\\|when\\|setq\\|let**\\|lambda\\|kbd\\|defun\\|car\\|cdr\\)\\s-+" + '(("(\\s-*\\(eq\\|if\\|cond\\|and\\|set\\|or\\|not\\|when\\|setq\\|let**\\|lambda\\|kbd\\|defun\\|car\\|cdr\\)\\s-+" 1 'font-lock-keyword-face))) ;; same applies for quoted symbols @@ -3251,6 +3262,12 @@ otherwise fold current level and jump one level up." (file-name-sans-extension (file-name-nondirectory file)))))) +;; easier navigation in Info mode, intuitive history back and forth. +(eval-after-load "Info" + '(progn + (define-key Info-mode-map (kbd "") 'Info-history-back) + (define-key Info-mode-map (kbd "") 'Info-history-forward))) + ;; -------------------------------------------------------------------------------- ;; *** calc et al. @@ -4123,16 +4140,14 @@ converted to PDF at the same location." ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" - :slant normal :weight normal :width normal)))) + '(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" :slant normal :weight normal :width normal)))) '(cperl-nonoverridable-face ((((class color) (background light)) (:foreground "Magenta")))) '(custom-documentation-face ((t (:foreground "Navy"))) t) - '(custom-group-tag-face-1 ((((class color) (background light)) - (:underline t :foreground "VioletRed"))) t) + '(custom-group-tag-face-1 ((((class color) (background light)) (:underline t :foreground "VioletRed"))) t) '(font-lock-builtin-face ((t (:foreground "BlueViolet")))) '(font-lock-comment-face ((t (:foreground "DarkGreen")))) - '(font-lock-doc-face ((t (:foreground "DarkOrange3")))) '(font-lock-constant-face ((t (:foreground "Magenta")))) + '(font-lock-doc-face ((t (:foreground "DarkOrange3")))) '(font-lock-function-name-face ((t (:bold nil :foreground "DarkOrchid")))) '(font-lock-keyword-face ((t (:foreground "Blue")))) '(font-lock-string-face ((t (:foreground "Red")))) @@ -4144,10 +4159,8 @@ converted to PDF at the same location." '(mode-line ((t (:foreground "White" :background "Blue")))) '(mode-line-inactive ((t (:foreground "White" :background "DimGray")))) '(org-date ((t (:foreground "dark gray" :underline t)))) - '(org-level-1 ((t (:height 1.18 :inherit outline-1 - :foreground "medium slate blue" :underline t)))) - '(org-level-2 ((t (:height 1.16 :inherit outline-2 - :foreground "sea green" :underline t :weight normal)))) + '(org-level-1 ((t (:height 1.18 :inherit outline-1 :foreground "medium slate blue" :underline t)))) + '(org-level-2 ((t (:height 1.16 :inherit outline-2 :foreground "sea green" :underline t :weight normal)))) '(org-level-3 ((t (:height 1.14 :foreground "saddle brown" :underline t)))) '(org-level-4 ((t (:height 1.12 :foreground "OrangeRed2" :underline t)))) '(org-level-5 ((t (:height 1.1 :inherit outline-5 :underline t)))) @@ -4155,6 +4168,10 @@ converted to PDF at the same location." '(outline-2 ((t (:inherit font-lock-variable-name-face :underline t :weight bold)))) '(outline-3 ((t (:inherit font-lock-keyword-face :underline t :weight bold)))) '(outline-4 ((t (:inherit font-lock-comment-face :underline t)))) + '(info-title-1 ((t (:inherit outline-1)))) + '(info-title-2 ((t (:inherit outline-2)))) + '(info-title-3 ((t (:inherit outline-3)))) + '(info-title-4 ((t (:inherit outline-4)))) '(region ((t (:foreground "Aquamarine" :background "Darkblue")))) '(secondary-selection ((t (:foreground "Green" :background "darkslateblue")))) '(wg-command-face ((t nil))) @@ -4185,7 +4202,7 @@ converted to PDF at the same location." ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. -) + ) ;; ** done diff --git a/emacs.html b/emacs.html index 8a2c1fa..700e216 100644 --- a/emacs.html +++ b/emacs.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + @@ -232,167 +232,168 @@ for the JavaScript code in this tag.

Table of Contents

@@ -401,8 +402,8 @@ for the JavaScript code in this tag.

Toms Emacs Config - portable - version (20170610.01) -*-emacs-lisp-*-

-
-

1 Introduction

+
+

1 Introduction

This is my emacs config, it is more than twenty years old. It @@ -456,11 +457,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: @@ -1213,8 +1214,8 @@ or inserts a % if not on a paren. Better than C-5, haha.


-
-

2.2 .emacs config version

+
+

2.2 .emacs config version

My emacs config has a version (consisting of a timestamp with a @@ -1231,12 +1232,17 @@ 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

+
    +
  • Info mode: C-left+C-right history keys
  • +
+ +

since I always use ~/.emacs as my init file, this results in the correct emacs dir: @@ -1269,8 +1275,8 @@ all modes and extensions are located here


-
-

3.2 Fontlock-mode - use syntax highlighting on graphical displays

+
+

3.2 Fontlock-mode - use syntax highlighting on graphical displays

look: emacswiki @@ -1287,8 +1293,8 @@ look: emacswiki


-
-

3.3 line-cursor in console

+
+

3.3 line-cursor in console

better visibility of cursor in console sessions @@ -1304,8 +1310,8 @@ better visibility of cursor in console sessions


-
-

3.4 Backup Config

+
+

3.4 Backup Config

I save backup files in a central location below the init dir, that @@ -1376,8 +1382,8 @@ This is system specific and only matches special host names.


-
-

3.5 console backspace fix

+
+

3.5 console backspace fix

make backspace work in console sessions @@ -1390,8 +1396,8 @@ make backspace work in console sessions


-
-

3.6 hide menu- and tool-bar

+
+

3.6 hide menu- and tool-bar

I prefer a bare bones emacs window without any distractions, so turn them off. @@ -1407,8 +1413,8 @@ I prefer a bare bones emacs window without any distractions, so turn them off.


-
-

3.7 stay silent on startup

+
+

3.7 stay silent on startup

(setq initial-scratch-message "")
@@ -1421,8 +1427,8 @@ I prefer a bare bones emacs window without any distractions, so turn them off.
 
-
-

3.8 y means yes

+
+

3.8 y means yes

y is shorter than yes and less error prone. @@ -1435,8 +1441,8 @@ y is shorter than yes and less error prone.


-
-

3.9 show col in modeline

+
+

3.9 show col in modeline

very useful to know current column @@ -1449,8 +1455,8 @@ very useful to know current column


-
-

3.10 file or buffer in title

+
+

3.10 file or buffer in title

this can be seen in xmobar @@ -1464,8 +1470,8 @@ this can be seen in xmobar


-
-

3.11 avoid invalid files

+
+

3.11 avoid invalid files

(setq require-final-newline t)
@@ -1475,8 +1481,8 @@ this can be seen in xmobar
 
-
-

3.12 prepare load-path

+
+

3.12 prepare load-path

where to look for extensions: @@ -1503,8 +1509,8 @@ modules


-
-

3.13 byte-compile all of them, if needed

+
+

3.13 byte-compile all of them, if needed

handy function to recompile all lisp files @@ -1519,8 +1525,8 @@ handy function to recompile all lisp files


-
-

3.14 increase fontsize with ctrl-+ and ctrl--

+
+

3.14 increase fontsize with ctrl-+ and ctrl--

I use those bindings everywhere (firefox, terminal, etc), and in @@ -1546,11 +1552,11 @@ emacs as well.


-
-

3.15 WINDOW management stuff

+
+

3.15 WINDOW management stuff

-
-

3.15.1 resize windows by keyboard

+
+

3.15.1 resize windows by keyboard

Very practical: resize windows easily. @@ -1567,8 +1573,8 @@ hit C-c C-r then use cursor keys to resize, <ret> to finish

-
-

3.15.2 switch windows with MS-WINDOWS key

+
+

3.15.2 switch windows with MS-WINDOWS key

(require 'windmove)
@@ -1579,8 +1585,8 @@ hit C-c C-r then use cursor keys to resize, <ret> to finish
 
-
-

3.15.3 M-o switch window or buffer

+
+

3.15.3 M-o switch window or buffer

via mbork @@ -1660,8 +1666,8 @@ Use only in X11 emacs - setting M-O inside console causes <up> and

-
-

3.16 re-read a modified buffer

+
+

3.16 re-read a modified buffer

F5 == reload file if it has been modified by another process, shift @@ -1686,8 +1692,8 @@ because Xmonad


-
-

3.17 global TAB/Indent config

+
+

3.17 global TAB/Indent config

I use spaces everywhere but Makefiles. If I encounter TABs I @@ -1727,8 +1733,8 @@ Use normal tabs in makefiles


-
-

3.18 handy aliases

+
+

3.18 handy aliases

M-x q r <ret> is short enough for me, no need for key bindings for @@ -1760,8 +1766,8 @@ those


-
-

3.19 various settings

+
+

3.19 various settings

point stays while scrolling @@ -1814,8 +1820,8 @@ I'm grown up!


-
-

3.20 load imenu

+
+

3.20 load imenu

(define-key global-map [C-down-mouse-2] 'imenu)
@@ -1825,8 +1831,8 @@ I'm grown up!
 
-
-

3.21 copy/paste Config

+
+

3.21 copy/paste Config

Related: @@ -1893,8 +1899,8 @@ marked region automatically copied, also on win


-
-

3.22 use more mem

+
+

3.22 use more mem

are you from the past? @@ -1907,8 +1913,8 @@ are you from the past?


-
-

3.23 better file name completion

+
+

3.23 better file name completion

Complete filenames case insensitive and ignore certain files during completion. @@ -1938,8 +1944,8 @@ via -

3.24 abbreviations

+
+

3.24 abbreviations

Do I really need those anymore? Added ca 1999… @@ -1961,8 +1967,8 @@ Do I really need those anymore? Added ca 1999…

-
-

3.25 meaningful names for buffers with the same name

+
-
-

3.26 packages

+
+

3.26 packages

I dont need it all the time and only for experimentation, so lets @@ -2004,8 +2010,8 @@ only use melpa on demand


-
-

3.27 My own global variables

+
+

3.27 My own global variables

narrowed fringe background @@ -2018,8 +2024,8 @@ narrowed fringe background


-
-

3.28 More scratch space

+
+

3.28 More scratch space

Sometimes I need a text mode scratch buffer while scratch is @@ -2035,13 +2041,13 @@ already in use. So let's prepare one

-
-

4 Global Key Bindings

+
+

4 Global Key Bindings


-
-

4.1 c-h != delete

+
+

4.1 c-h != delete

(keyboard-translate ?\C-h ?\C-?)
@@ -2052,8 +2058,8 @@ already in use. So let's prepare one
 
-
-

4.2 general keys (re-)mappings

+
+

4.2 general keys (re-)mappings

(global-set-key (kbd "C-x C-4")         'set-selective-display-to-current-column)
@@ -2080,8 +2086,8 @@ already in use. So let's prepare one
 
-
-

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 @@ -2158,13 +2164,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 @@ -2188,8 +2194,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 @@ -2232,8 +2238,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 @@ -2297,8 +2303,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 @@ -2319,8 +2325,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 @@ -2352,8 +2358,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 @@ -2452,8 +2458,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 @@ -2520,8 +2526,8 @@ via ergomacs


-
-

5.9 Window Margin

+
+

5.9 Window Margin

Kinda screen reader for the poor. I use this sometimes with info @@ -2547,8 +2553,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: @@ -2577,8 +2583,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 @@ -2627,8 +2633,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 @@ -2659,8 +2665,8 @@ setup accidentally.


-
-

5.13 Cleanup current buffer

+
-
-

5.14 Better newline(s)

+
-
-

5.15 Mouse Rectangle

+
-
-

5.16 DOS <=> UNIX conversion helpers

+
+

5.16 DOS <=> UNIX conversion helpers

(defun dos2unix ()
@@ -2773,8 +2781,8 @@ via stackoverflow
 
-
-

5.17 helper do add the same thing to multiple mode hooks

+
+

5.17 helper do add the same thing to multiple mode hooks

via stackoverflow @@ -2792,8 +2800,8 @@ usage samples below.

-
-

5.18 helper to catch load errors

+
+

5.18 helper to catch load errors

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


-
-

5.19 Alignment Wrappers

+
+

5.19 Alignment Wrappers

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

-
-

5.20 String Helpers

+
+

5.20 String Helpers

Some helper functions I use here and there. @@ -2906,14 +2914,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)
@@ -2928,8 +2936,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 :) @@ -2957,8 +2965,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 @@ -3105,8 +3113,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. @@ -3149,8 +3157,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 @@ -3227,11 +3235,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. @@ -3258,8 +3266,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 @@ -3353,8 +3361,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 @@ -3372,8 +3380,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 @@ -3409,8 +3417,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 @@ -3485,7 +3493,6 @@ pod mode config (outline-minor-mode) ;; my own abbrevs for POD using mode-specific abbrev table - (defvar pod-abbrev-table nil) (c-define-abbrev-table 'pod-mode-abbrev-table '( ("ov" "=over\n\n=item\n\n=back\n") ("h1" "=head1 ") @@ -3520,8 +3527,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 @@ -3538,16 +3545,32 @@ configs. Applies for derivates as well. (add-something-to-mode-hooks '(conf cisco fundamental conf-space pod) 'disarm-conf-mode)

+
+
+
+ +
+

6.2.7 Config::General mode

+
+

+My own mode for Config::General files +

+ +
+
(require 'config-general-mode)
+(add-hook 'config-general-mode-hook 'electric-indent-mode)
+
+

-
-

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 @@ -3565,8 +3588,8 @@ german keyboard this is the same as C-= without pressing shift.

-
-

6.3.2 Rotate text

+
+

6.3.2 Rotate text

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

-
-

6.3.3 Word wrapping

+
+

6.3.3 Word wrapping

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

-
-

6.3.4 Viking Mode

+
+

6.3.4 Viking Mode

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

-
-

6.3.5 HTMLize

+
+

6.3.5 HTMLize

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

-
-

6.3.6 iEdit (inline edit multiple searches)

+
+

6.3.6 iEdit (inline edit multiple searches)

Edit all occurences of something at once. Great for re-factoring. @@ -3724,11 +3747,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 @@ -4008,8 +4031,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. @@ -4157,7 +4180,7 @@ I like to have some functions fontified differently

(font-lock-add-keywords
  'emacs-lisp-mode
- '(("(\\s-*\\(eq\\|if\\|cond\\|or\\|not\\|when\\|setq\\|let**\\|lambda\\|kbd\\|defun\\|car\\|cdr\\)\\s-+"
+ '(("(\\s-*\\(eq\\|if\\|cond\\|and\\|set\\|or\\|not\\|when\\|setq\\|let**\\|lambda\\|kbd\\|defun\\|car\\|cdr\\)\\s-+"
     1 'font-lock-keyword-face)))
 
@@ -4176,8 +4199,8 @@ same applies for quoted symbols
-
-

6.4.3 tramp mode

+
+

6.4.3 tramp mode

Edit remote files, one of the best things in emacs. I use it every day heavily. @@ -4199,8 +4222,8 @@ doku: gnu.org

-
-

6.4.4 org mode

+
+

6.4.4 org mode

I use org mode to take notes mostly at work. I also track projects @@ -4286,7 +4309,7 @@ my org-mode specific <C-left> and <C-right> "jump one word to the left if not on a org heading, otherwise fold current level and jump one level up." (interactive) - (if (and (org-at-heading-p) (looking-at "*")) + (if (and (org-at-heading-p) (looking-at "*")) (progn (hide-subtree) (outline-up-heading 1)) @@ -4296,7 +4319,7 @@ my org-mode specific <C-left> and <C-right> "If on a heading, fold current heading, jump one level up and unfold it, otherwise jump paragraph as usual." (interactive) - (if (and (org-at-heading-p) (looking-at "*")) + (if (and (org-at-heading-p) (looking-at "*")) (progn (hide-subtree) (org-backward-heading-same-level 1) @@ -4307,7 +4330,7 @@ my org-mode specific <C-left> and <C-right> "If on a heading, fold current heading, jump one level down and unfold it, otherwise jump paragraph as usual." (interactive) - (if (and (org-at-heading-p) (looking-at "*")) + (if (and (org-at-heading-p) (looking-at "*")) (progn (hide-subtree) (org-forward-heading-same-level 1) @@ -4503,8 +4526,8 @@ is in the outline section.


-
-

6.4.5 org table mode

+
+

6.4.5 org table mode

I'm so used to lovely org mode tables, I need them everywhere! @@ -4750,8 +4773,8 @@ tables as well

-
-

6.4.6 org mode slideshows

+
+

6.4.6 org mode slideshows

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


-
-

6.4.7 outshine mode

+
+

6.4.7 outshine mode

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

-
-

6.4.8 outline mode

+
+

6.4.8 outline mode

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


-
-

6.4.9 narrowing (no mode but fits here)

+
+

6.4.9 narrowing (no mode but fits here)

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

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

+
+

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

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

-
-

6.4.11 Puppet

+
+

6.4.11 Puppet

adds hook for .pp files @@ -5291,8 +5314,8 @@ adds hook for .pp files

-
-

6.4.12 Novel Mode - Screen Reader

+
+

6.4.12 Novel Mode - Screen Reader

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

-
-

6.4.13 Macro Math

+
+

6.4.13 Macro Math

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

-
-

6.4.14 Common-Lisp (SLIME)

+
+

6.4.14 Common-Lisp (SLIME)

-
-

6.4.16 calc et al.

+
+

6.4.16 calc et al.

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

-
-

6.4.17 MACROs

+
+

6.4.17 MACROs

help: emacswiki macro tricks. @@ -5549,7 +5583,7 @@ better than the default function (if (eobp) (if (yes-or-no-p "(point) is at end of buffer. Jump to top?") (goto-char (point-min)))) - (while (and (not melm-abort) + (while (and (not melm-abort) (not (eobp))) (when (not melm-all) (message (concat @@ -5571,7 +5605,7 @@ better than the default function (call-interactively (intern melm-code)) (call-interactively 'call-last-kbd-macro)) (setq melm-count (1+ melm-count))))) - (if (and (eq melm-count 0) (eq (point) (point-max))) + (if (and (eq melm-count 0) (eq (point) (point-max))) (message "(point) is at end of buffer, aborted") (message (format "executed '%s %d times" melm-code melm-count))))) @@ -5653,8 +5687,8 @@ but only load if in use


-
-

6.4.18 EWW browser stuff

+
+

6.4.18 EWW browser stuff

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


-
-

6.4.19 Firestarter

+
+

6.4.19 Firestarter

experimental: do things on save buffer etc. @@ -5733,11 +5767,11 @@ Source: firestarter

-
-

6.5 Emacs Interface

+
+

6.5 Emacs Interface

-
-

6.5.1 Parens

+
+

6.5.1 Parens

display matching braces @@ -5758,8 +5792,8 @@ display matching braces

-
-

6.5.2 highlight todo keywords (such as FIXME)

+
+

6.5.2 highlight todo keywords (such as FIXME)

Absolutely needed! @@ -5774,8 +5808,8 @@ Absolutely needed!


-
-

6.5.3 UNDO Tree Mode

+
+

6.5.3 UNDO Tree Mode

Better undo, with redo support. @@ -5818,8 +5852,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. @@ -5842,8 +5876,8 @@ fails @win, so wrap it

-
-

6.5.5 Which Func

+
+

6.5.5 Which Func

display current function - if any - in mode line @@ -5858,8 +5892,8 @@ display current function - if any - in mode line


-
-

6.5.6 Show current-line in the Fringe

+
+

6.5.6 Show current-line in the Fringe

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

6.5.7 Recent Files

+
+

6.5.7 Recent Files

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

-
-

6.5.8 IDO mode

+
+

6.5.8 IDO mode

There are other completion enhancement packages available like ivy @@ -6043,7 +6077,7 @@ Display ido results vertically, rather than horizontally " [No match]" " [Matched]" " [Not readable]" " [Too big]" " [Confirm]"))) -(defun ido-disable-line-truncation () (set (make-local-variable 'truncate-lines) nil)) +(defun ido-disable-line-truncation () (set (make-local-variable 'truncate-lines) nil)) (add-hook 'ido-minibuffer-setup-hook 'ido-disable-line-truncation) (defun ido-define-keys () (define-key ido-completion-map (kbd "<down>") 'ido-next-match) @@ -6076,7 +6110,7 @@ by howardism: [re]open non-writable file with sudo

(defadvice ido-find-file (after find-file-sudo activate)
   "Find file as root if necessary."
-  (unless (and buffer-file-name
+  (unless (and buffer-file-name
                (file-writable-p buffer-file-name))
     (let* ((file-name (buffer-file-name))
            (file-root (if (string-match "/ssh:\\([^:]+\\):\\(.*\\)" file-name)
@@ -6093,8 +6127,8 @@ by howardism: [re]open non-writable file with sudo
 
-
-

6.5.9 Save cursor position

+
+

6.5.9 Save cursor position

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

-
-

6.5.10 DoReMi experimentation

+
+

6.5.10 DoReMi experimentation

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


-
-

6.5.11 Hightligt TABs

+
+

6.5.11 Hightligt TABs

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

-
-

6.5.12 Browse kill-ring

+
+

6.5.12 Browse kill-ring

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

-
-

6.5.13 goto-last-change

+
+

6.5.13 goto-last-change

Very handy, jump to last change[s]. @@ -6206,8 +6240,8 @@ Very handy, jump to last change[s].

-
-

6.5.14 Bookmarks

+
+

6.5.14 Bookmarks

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

-
-

6.5.15 which-key

+
+

6.5.15 which-key

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

-
-

6.5.16 Mark, Copy, Yank Things

+
+

6.5.16 Mark, Copy, Yank Things

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

-
-

6.5.17 iBuffer mode

+
+

6.5.17 iBuffer mode

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

-
-

6.5.18 Printing

+
+

6.5.18 Printing

overwrites printing default menu, access via menu File => Print @@ -6621,8 +6655,8 @@ via -

6.5.19 Beacon mode (pointer blink)

+
+

6.5.19 Beacon mode (pointer blink)

Source: beacon mode @@ -6652,8 +6686,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 @@ -6718,13 +6752,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. @@ -6742,16 +6776,14 @@ show available colors: ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" - :slant normal :weight normal :width normal)))) + '(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" :slant normal :weight normal :width normal)))) '(cperl-nonoverridable-face ((((class color) (background light)) (:foreground "Magenta")))) '(custom-documentation-face ((t (:foreground "Navy"))) t) - '(custom-group-tag-face-1 ((((class color) (background light)) - (:underline t :foreground "VioletRed"))) t) + '(custom-group-tag-face-1 ((((class color) (background light)) (:underline t :foreground "VioletRed"))) t) '(font-lock-builtin-face ((t (:foreground "BlueViolet")))) '(font-lock-comment-face ((t (:foreground "DarkGreen")))) - '(font-lock-doc-face ((t (:foreground "DarkOrange3")))) '(font-lock-constant-face ((t (:foreground "Magenta")))) + '(font-lock-doc-face ((t (:foreground "DarkOrange3")))) '(font-lock-function-name-face ((t (:bold nil :foreground "DarkOrchid")))) '(font-lock-keyword-face ((t (:foreground "Blue")))) '(font-lock-string-face ((t (:foreground "Red")))) @@ -6763,10 +6795,8 @@ show available colors: '(mode-line ((t (:foreground "White" :background "Blue")))) '(mode-line-inactive ((t (:foreground "White" :background "DimGray")))) '(org-date ((t (:foreground "dark gray" :underline t)))) - '(org-level-1 ((t (:height 1.18 :inherit outline-1 - :foreground "medium slate blue" :underline t)))) - '(org-level-2 ((t (:height 1.16 :inherit outline-2 - :foreground "sea green" :underline t :weight normal)))) + '(org-level-1 ((t (:height 1.18 :inherit outline-1 :foreground "medium slate blue" :underline t)))) + '(org-level-2 ((t (:height 1.16 :inherit outline-2 :foreground "sea green" :underline t :weight normal)))) '(org-level-3 ((t (:height 1.14 :foreground "saddle brown" :underline t)))) '(org-level-4 ((t (:height 1.12 :foreground "OrangeRed2" :underline t)))) '(org-level-5 ((t (:height 1.1 :inherit outline-5 :underline t)))) @@ -6774,6 +6804,10 @@ show available colors: '(outline-2 ((t (:inherit font-lock-variable-name-face :underline t :weight bold)))) '(outline-3 ((t (:inherit font-lock-keyword-face :underline t :weight bold)))) '(outline-4 ((t (:inherit font-lock-comment-face :underline t)))) + '(info-title-1 ((t (:inherit outline-1)))) + '(info-title-2 ((t (:inherit outline-2)))) + '(info-title-3 ((t (:inherit outline-3)))) + '(info-title-4 ((t (:inherit outline-4)))) '(region ((t (:foreground "Aquamarine" :background "Darkblue")))) '(secondary-selection ((t (:foreground "Green" :background "darkslateblue")))) '(wg-command-face ((t nil))) @@ -6802,8 +6836,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 @@ -6817,15 +6851,15 @@ here. So, in normal times this should be empty, but needs to exist. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. -) + )

-
-

7.3 done

+
+

7.3 done

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

Author: Tom

-

Created: 2017-06-17 Sa 18:56

+

Created: 2017-06-22 Do 20:41

Validate