diff --git a/.emacs b/.emacs index 63905dc..eb528de 100644 --- a/.emacs +++ b/.emacs @@ -389,8 +389,8 @@ ;; - removed GNUS config, not used anymore ;; - restored C-d binding to viking in paredit ;; - added outshine HTML exporter via org: outshine-to-html - - +;; - fixed outshine config +;; - added (my) config-general-mode ;; -------------------------------------------------------------------------------- @@ -1942,6 +1942,8 @@ col1, col2" (require 'config-general-mode) (add-hook 'config-general-mode-hook 'electric-indent-mode) +(add-hook 'config-general-mode-hook '(lambda () + (outline-minor-mode))) ;; -------------------------------------------------------------------------------- ;; ** Text Manupilation @@ -2906,9 +2908,11 @@ specify another regex for cell splitting." (require 'outshine) -;; Only use it for .emacs, so: +;; enable when outline +(add-hook 'outline-minor-mode-hook 'outshine-hook-function) + +;; use it for .emacs: (add-hook 'emacs-lisp-mode-hook '(lambda () - (outshine-hook-function) (outline-minor-mode))) ;; I do have my own outshine parser here. It generates an alist of all diff --git a/emacs.html b/emacs.html index 700e216..4fe90ac 100644 --- a/emacs.html +++ b/emacs.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- +Toms Emacs Config - portable - version (20170610.01) -*-emacs-lisp-*-
-This is my emacs config, it is more than twenty years old. It @@ -457,11 +457,11 @@ outshine-to-html, written by myself, see below.
20160420.03: @@ -1206,16 +1206,16 @@ or inserts a % if not on a paren. Better than C-5, haha.
My emacs config has a version (consisting of a timestamp with a @@ -1232,11 +1232,11 @@ I'm using an outdated config somewhere.
better visibility of cursor in console sessions @@ -1310,8 +1310,8 @@ better visibility of cursor in console sessions
I save backup files in a central location below the init dir, that @@ -1382,8 +1382,8 @@ This is system specific and only matches special host names.
make backspace work in console sessions @@ -1396,8 +1396,8 @@ make backspace work in console sessions
I prefer a bare bones emacs window without any distractions, so turn them off. @@ -1413,8 +1413,8 @@ I prefer a bare bones emacs window without any distractions, so turn them off.
(setq initial-scratch-message "") @@ -1427,8 +1427,8 @@ I prefer a bare bones emacs window without any distractions, so turn them off.
y is shorter than yes and less error prone. @@ -1441,8 +1441,8 @@ y is shorter than yes and less error prone.
very useful to know current column @@ -1455,8 +1455,8 @@ very useful to know current column
this can be seen in xmobar @@ -1470,8 +1470,8 @@ this can be seen in xmobar
(setq require-final-newline t) @@ -1481,8 +1481,8 @@ this can be seen in xmobar
where to look for extensions: @@ -1509,8 +1509,8 @@ modules
handy function to recompile all lisp files @@ -1525,8 +1525,8 @@ handy function to recompile all lisp files
I use those bindings everywhere (firefox, terminal, etc), and in @@ -1552,11 +1552,11 @@ emacs as well.
Very practical: resize windows easily. @@ -1573,8 +1573,8 @@ hit C-c C-r then use cursor keys to resize, <ret> to finish
(require 'windmove) @@ -1585,8 +1585,8 @@ hit C-c C-r then use cursor keys to resize, <ret> to finish
via mbork @@ -1666,8 +1666,8 @@ Use only in X11 emacs - setting M-O inside console causes <up> and
F5 == reload file if it has been modified by another process, shift @@ -1692,8 +1692,8 @@ because Xmonad
I use spaces everywhere but Makefiles. If I encounter TABs I @@ -1733,8 +1733,8 @@ Use normal tabs in makefiles
M-x q r <ret> is short enough for me, no need for key bindings for @@ -1766,8 +1766,8 @@ those
point stays while scrolling @@ -1820,8 +1820,8 @@ I'm grown up!
(define-key global-map [C-down-mouse-2] 'imenu) @@ -1831,8 +1831,8 @@ I'm grown up!
Related: @@ -1899,8 +1899,8 @@ marked region automatically copied, also on win
are you from the past? @@ -1913,8 +1913,8 @@ are you from the past?
Complete filenames case insensitive and ignore certain files during completion.
@@ -1944,8 +1944,8 @@ via
-
Do I really need those anymore? Added ca 1999…
@@ -1967,8 +1967,8 @@ Do I really need those anymore? Added ca 1999…
I dont need it all the time and only for experimentation, so lets
@@ -2010,8 +2010,8 @@ only use melpa on demand
narrowed fringe background
@@ -2024,8 +2024,8 @@ narrowed fringe background
Sometimes I need a text mode scratch buffer while scratch is
@@ -2041,13 +2041,13 @@ already in use. So let's prepare one
via emacswiki
@@ -2164,13 +2164,13 @@ more help with: describe-function occur-mode
I stole this somewhere, as far as I remember, emacswiki, however, I
@@ -2194,8 +2194,8 @@ always had F7 for goto-line
Sometimes when sitting in a very dark enviroment, my usual light
@@ -2238,8 +2238,8 @@ fast
Go to the beginning/end of a line, hit it twice in a row to go to
@@ -2303,8 +2303,8 @@ This is the most natural use for those keys
by Jens Heunemann: jump to percent position into current buffer
@@ -2325,8 +2325,8 @@ by Jens Heunemann: jump to percent position into current buffer
There's not a lot about vi[m] I like, but jumping with % to a
@@ -2358,8 +2358,8 @@ just insert a literal ?%. Only make sense if bound to %.
Mark a region, then use M-up|down to move it around
@@ -2458,8 +2458,8 @@ code from
-
via stackoverflow
@@ -2481,8 +2481,8 @@ via stackoverflow
Simulate the # function of vi, marks the symbol at point, C-s then
@@ -2526,8 +2526,8 @@ via ergomacs
Kinda screen reader for the poor. I use this sometimes with info
@@ -2553,8 +2553,8 @@ left+right margin on demand (but nothing else)
this is just a shortcut for:
@@ -2583,8 +2583,8 @@ idea via:
-
I just create a new read-only buffer and copy the contents of the
@@ -2633,8 +2633,8 @@ a file is not maintained via VC anyway.
From time to time I get annoyed by the many dozen buffers
@@ -2665,8 +2665,8 @@ setup accidentally.
Remove TABs, leading and trailing spaces, re-indent a buffer.
@@ -2696,8 +2696,8 @@ via whattheemacs.d
Add newline and jump to indent from wherever I am in the current
@@ -2731,8 +2731,8 @@ via whattheemacs.d<
There's not much use for the mouse in emacs, but this gimick is
@@ -2762,8 +2762,8 @@ via stackoverflow
via stackoverflow
@@ -2800,8 +2800,8 @@ usage samples below.
Try to eval 'fn, catch errors, if any but make it possible for
@@ -2823,8 +2823,8 @@ emacs to continue undisturbed, used with SMEX, see below.
align-regexp is already a very usefull tool, however, sometimes I
@@ -2874,8 +2874,8 @@ wrappers to make this easier.
Some helper functions I use here and there.
@@ -2914,14 +2914,14 @@ Some helper functions I use here and there.
Not much configured for python, I'm happy with the defaults as it seems :)
@@ -2965,8 +2965,8 @@ Not much configured for python, I'm happy with the defaults as it seems :)
I am a perl addict. I love it, therefore, emacs must be prepared
@@ -3113,8 +3113,8 @@ and hook them into cperl
I use paredit in lisp a lot, but are mostly happy with the defaults.
@@ -3157,8 +3157,8 @@ sometimes I need to be able to turn it off fast:
I use ETAGS for some projects. With etags I can easily jump to the
@@ -3235,11 +3235,11 @@ some handy aliases
Used for XML and the likes.
@@ -3266,8 +3266,8 @@ Used for XML and the likes.
Web development is shit. Tech involved is a mess, and in most cases
@@ -3361,8 +3361,8 @@ convert a text list into a html list.
Written by myself many years ago, but I'm still using it daily to
@@ -3380,8 +3380,8 @@ view and prepare cisco configs.
I rarely use markdown, but sometimes I stumble upon such a file and
@@ -3417,8 +3417,8 @@ parens and quotes constraints check on save
I LOVE POD! POD is the documentation format of perl and there's a
@@ -3527,8 +3527,8 @@ pod mode config
conf-mode annoyingly overwrites the global keybinding C-c C-c with
@@ -3549,8 +3549,8 @@ configs. Applies for derivates as well.
My own mode for Config::General files
@@ -3559,6 +3559,8 @@ My own mode for Config::General files
One of the best modes I ever discovered. Press C-= multiple times
@@ -3588,8 +3590,8 @@ german keyboard this is the same as C-= without pressing shift.
This one is great as well, I use it to toggle flags and such stuff
@@ -3645,8 +3647,8 @@ short command anymore, so C-t would be free now, wouldn't it?
same as word-wrap but without the fringe which I hate the most!
@@ -3668,8 +3670,8 @@ overwritten by visual-line-mode above for specifics
Delete stuff fast. Press the key multiple times - delete more
@@ -3687,8 +3689,8 @@ things. Inspired by expand-region. Written by myself.
extracted from debian package emacs-goodies-el-35.2+nmu1, since
@@ -3705,8 +3707,8 @@ the current buffer, however it looks.
Edit all occurences of something at once. Great for re-factoring.
@@ -3747,11 +3749,11 @@ behavior, so, I modify it myself using defadvice.
I am a hardcore bash user, but from time to time eshell is good
@@ -4031,8 +4033,8 @@ no need for less or more, this is emacs, isn't it?
General configuration for all things elisp.
@@ -4199,8 +4201,8 @@ same applies for quoted symbols
Edit remote files, one of the best things in emacs. I use it every day heavily.
@@ -4222,8 +4224,8 @@ doku: gnu.org
I use org mode to take notes mostly at work. I also track projects
@@ -4526,8 +4528,8 @@ is in the outline section.
I'm so used to lovely org mode tables, I need them everywhere!
@@ -4773,8 +4775,8 @@ tables as well
Making presentations within emacs with org mode is cool as well.
@@ -4882,8 +4884,8 @@ Will be inserted as first help slide in a slide show
I maintain my emacs config with outshine mode. It works a lot like
@@ -4899,11 +4901,18 @@ bullshit.
-Only use it for .emacs, so:
+enable when outline
+
+use it for .emacs:
I use the very same cycle style as in org mode: when on a heading,
@@ -5141,8 +5150,8 @@ orange fringe when narrowed
I use narrowing quite frequently, so here are some enhancements.
@@ -5182,8 +5191,8 @@ via
-
I use ansi term for inferior shells only.
@@ -5299,8 +5308,8 @@ finally the inferior REPLs:
adds hook for .pp files
@@ -5314,8 +5323,8 @@ adds hook for .pp files
my own emacs screen reader, very handy to read docs on the road.
@@ -5331,8 +5340,8 @@ my own emacs screen reader, very handy to read docs on the road.
see macro-math
@@ -5355,8 +5364,8 @@ mark something and hit C-x C-0 (which is a reminder to C-x C-= w/o the shift)
I'm learing CL with slime, start with M-x slime.
@@ -5389,8 +5398,8 @@ INSTALL: (see:
-
open an info file somewhere outside %infodir% with info-mode
@@ -5422,8 +5431,8 @@ easier navigation in Info mode, intuitive history back and forth.
emacs provides 4 ways to calculate:
@@ -5473,8 +5482,8 @@ or, inferior perl calc: M-x icalc, see above
help: emacswiki macro tricks.
@@ -5687,8 +5696,8 @@ but only load if in use
Emacs has a builtin browser, which is not too bad.
@@ -5756,8 +5765,8 @@ hides menus and distractions! Update emacs.
experimental: do things on save buffer etc.
@@ -5767,11 +5776,11 @@ Source: firestarter
display matching braces
@@ -5792,8 +5801,8 @@ display matching braces
Absolutely needed!
@@ -5808,8 +5817,8 @@ Absolutely needed!
Better undo, with redo support.
@@ -5852,8 +5861,8 @@ M-_ catched by Xmonad
This is really cool and I don't know how I could ever live without it.
@@ -5876,8 +5885,8 @@ fails @win, so wrap it
display current function - if any - in mode line
@@ -5892,8 +5901,8 @@ display current function - if any - in mode line
You know the file you edited yesterday had "kri" in its name, but
@@ -5997,8 +6006,8 @@ exclude some auto generated files
There are other completion enhancement packages available like ivy
@@ -6127,8 +6136,8 @@ by howardism: [re]open non-writable file with sudo
So the next time I start emacs and open a file I were editing
@@ -6149,8 +6158,8 @@ before.
I'm not using it a lot, sometimes I tune the background color though.
@@ -6179,8 +6188,8 @@ cool ones: doremi-buffers, doremi-all-faces-fg+ [s, h]
not a mode, but however: higlight TABs in certain modes
@@ -6203,8 +6212,8 @@ not a mode, but however: higlight TABs in certain modes
when active use n and p to browse, <ret> to select, it's the same
@@ -6222,8 +6231,8 @@ as <M-y> and I never really use it…
Very handy, jump to last change[s].
@@ -6240,8 +6249,8 @@ Very handy, jump to last change[s].
I use the builtin bookmark feature quite a lot and am happy with
@@ -6273,8 +6282,8 @@ I use the same aliases as in apparix for bash (since I'm used to them)
One of the best unobstrusive modes for key help ever. Just start
@@ -6294,8 +6303,8 @@ press from there along with the associated functions.
For a long time this stuff was located here in my emacs config. As
@@ -6398,8 +6407,8 @@ it appears as NNN,NN.
iBuffer is a great interactive buffer management tool included with
@@ -6609,8 +6618,8 @@ override ibuffer M-o binding
overwrites printing default menu, access via menu File => Print
@@ -6655,8 +6664,8 @@ via
-
Source: beacon mode
@@ -6686,8 +6695,8 @@ editing position.
I just append the current version of my emacs config and leave out
@@ -6752,13 +6761,13 @@ custom modeline
Font color config, must always be the last thing so all hook faces are loaded.
@@ -6836,8 +6845,8 @@ unless we're on windoze
If I ever use custom-group to customize a mode, then I create a
@@ -6858,8 +6867,8 @@ here. So, in normal times this should be empty, but needs to exist.
Finally, this message is being displayed. If this isn't the case I
@@ -6876,7 +6885,7 @@ know easily that something went wrong.
3.24 abbreviations
+3.24 abbreviations
3.25 meaningful names for buffers with the same name
+3.25 meaningful names for buffers with the same name
3.26 packages
+3.26 packages
3.27 My own global variables
+3.27 My own global variables
3.28 More scratch space
+3.28 More scratch space
4 Global Key Bindings
+4 Global Key Bindings
4.1 c-h != delete
+4.1 c-h != delete
(keyboard-translate ?\C-h ?\C-?)
@@ -2058,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)
@@ -2086,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
5 Productivity Functions
+5 Productivity Functions
5.1 goto line with tmp line numbers
+5.1 goto line with tmp line numbers
5.2 invert fore- and background
+5.2 invert fore- and background
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
5.4 percent function
+5.4 percent function
5.5 Simulate vi's % function
+5.5 Simulate vi's % function
5.6 Move region
+5.6 Move region
5.7 comment-uncomment region with one key binding
+5.7 comment-uncomment region with one key binding
5.8 search for symbol at point
+5.8 search for symbol at point
5.9 Window Margin
+5.9 Window Margin
5.10 Fill and justify a paragraph
+5.10 Fill and justify a paragraph
5.11 Make a read-only copy of the current buffer
+5.11 Make a read-only copy of the current buffer
5.12 Cleanup, close all windows and kill all buffers
+5.12 Cleanup, close all windows and kill all buffers
5.13 Cleanup current buffer
+5.13 Cleanup current buffer
5.14 Better newline(s)
+5.14 Better newline(s)
5.15 Mouse Rectangle
+5.15 Mouse Rectangle
5.16 DOS <=> UNIX conversion helpers
+5.16 DOS <=> UNIX conversion helpers
(defun dos2unix ()
@@ -2781,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
5.18 helper to catch load errors
+5.18 helper to catch load errors
5.19 Alignment Wrappers
+5.19 Alignment Wrappers
5.20 String Helpers
+5.20 String Helpers
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)
@@ -2936,8 +2936,8 @@ Some helper functions I use here and there.
6.1.2 python mode
+6.1.2 python mode
6.1.3 cperl mode
+6.1.3 cperl mode
6.1.4 Paredit for lisp only
+6.1.4 Paredit for lisp only
6.1.5 ETAGS
+6.1.5 ETAGS
6.2 Text Modes
+6.2 Text Modes
6.2.1 sgml
+6.2.1 sgml
6.2.2 web-mode (JS, HTML, CSS combined)
+6.2.2 web-mode (JS, HTML, CSS combined)
6.2.3 Cisco Mode
+6.2.3 Cisco Mode
6.2.4 Markdown
+6.2.4 Markdown
6.2.5 POD mode
+6.2.5 POD mode
6.2.6 conf-mode
+6.2.6 conf-mode
6.2.7 Config::General mode
+6.2.7 Config::General mode
(require 'config-general-mode)
(add-hook 'config-general-mode-hook 'electric-indent-mode)
+(add-hook 'config-general-mode-hook '(lambda ()
+ (outline-minor-mode)))
6.3 Text Manupilation
+6.3 Text Manupilation
6.3.1 expand-region
+6.3.1 expand-region
6.3.2 Rotate text
+6.3.2 Rotate text
6.3.3 Word wrapping
+6.3.3 Word wrapping
6.3.4 Viking Mode
+6.3.4 Viking Mode
6.3.5 HTMLize
+6.3.5 HTMLize
6.3.6 iEdit (inline edit multiple searches)
+6.3.6 iEdit (inline edit multiple searches)
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
6.4.2 Emacs LISP interactive
+6.4.2 Emacs LISP interactive
6.4.3 tramp mode
+6.4.3 tramp mode
6.4.4 org mode
+6.4.4 org mode
6.4.5 org table mode
+6.4.5 org table mode
6.4.6 org mode slideshows
+6.4.6 org mode slideshows
6.4.7 outshine mode
+6.4.7 outshine mode
(add-hook 'outline-minor-mode-hook 'outshine-hook-function)
+
+(add-hook 'emacs-lisp-mode-hook '(lambda ()
- (outshine-hook-function)
(outline-minor-mode)))
6.4.8 outline mode
+6.4.8 outline mode
6.4.9 narrowing (no mode but fits here)
+6.4.9 narrowing (no mode but fits here)
6.4.10 ANSI-TERM (inferior shells/interpreters and REPLs)
+6.4.10 ANSI-TERM (inferior shells/interpreters and REPLs)
6.4.11 Puppet
+6.4.11 Puppet
6.4.12 Novel Mode - Screen Reader
+6.4.12 Novel Mode - Screen Reader
6.4.13 Macro Math
+6.4.13 Macro Math
6.4.14 Common-Lisp (SLIME)
+6.4.14 Common-Lisp (SLIME)
6.4.15 INFO Mode
+6.4.15 INFO Mode
6.4.16 calc et al.
+6.4.16 calc et al.
6.4.17 MACROs
+6.4.17 MACROs
6.4.18 EWW browser stuff
+6.4.18 EWW browser stuff
6.4.19 Firestarter
+6.4.19 Firestarter
6.5 Emacs Interface
+6.5 Emacs Interface
6.5.1 Parens
+6.5.1 Parens
6.5.2 highlight todo keywords (such as FIXME)
+6.5.2 highlight todo keywords (such as FIXME)
6.5.3 UNDO Tree Mode
+6.5.3 UNDO Tree Mode
6.5.4 Smarter M-x Mode (smex)
+6.5.4 Smarter M-x Mode (smex)
6.5.5 Which Func
+6.5.5 Which Func
6.5.6 Show current-line in the Fringe
+6.5.6 Show current-line in the Fringe
(require 'fringe-current-line)
@@ -5912,8 +5921,8 @@ also change the color (matching the mode line
6.5.7 Recent Files
+6.5.7 Recent Files
6.5.8 IDO mode
+6.5.8 IDO mode
6.5.9 Save cursor position
+6.5.9 Save cursor position
6.5.10 DoReMi experimentation
+6.5.10 DoReMi experimentation
6.5.11 Hightligt TABs
+6.5.11 Hightligt TABs
6.5.12 Browse kill-ring
+6.5.12 Browse kill-ring
6.5.13 goto-last-change
+6.5.13 goto-last-change
6.5.14 Bookmarks
+6.5.14 Bookmarks
6.5.15 which-key
+6.5.15 which-key
6.5.16 Mark, Copy, Yank Things
+6.5.16 Mark, Copy, Yank Things
6.5.17 iBuffer mode
+6.5.17 iBuffer mode
6.5.18 Printing
+6.5.18 Printing
6.5.19 Beacon mode (pointer blink)
+6.5.19 Beacon mode (pointer blink)
6.6 mode-line setup (must be the last mode)
+6.6 mode-line setup (must be the last mode)
7 Emacs Autoconfig / Customizegroup stuff
+7 Emacs Autoconfig / Customizegroup stuff
7.1 font faces
+7.1 font faces
7.2 variables
+7.2 variables
7.3 done
+7.3 done