+# -*- org-export-babel-evaluate: nil; -*-
+#+SETUPFILE: ~/git/github/org-html-themes/setup/theme-bigblow-local.setup
#+STARTUP: showall
#+TITLE: bba emacs configuration
#+OPTIONS: toc:4 h:4
fresh clone. Install the githooks and your .elc files will get
recompiled after a git pull.
-** new config
-
-*** debugging
+* debugging
If you are in need enable debugging:
(setq debug-on-error t)
#+END_SRC
-*** run in servermode
+* run in servermode
#+BEGIN_SRC emacs-lisp
(require 'server)
#+END_SRC
-*** set environment variables on osx
+* set environment variables on osx
[2015-07-16 Thu 19:10]
If running standalone on OSX we need to get some environment variables
)
#+END_SRC
-*** define emacs shutdown function
+* define emacs shutdown function
I like to commit my notes in my org and workorg folders after a days work.
Keep track of your important stuff!
#+END_SRC
-*** async
+* async
#+BEGIN_SRC emacs-lisp
(if (>= emacs-major-version 25)
(progn
)
)
#+END_SRC
-*** [[http://www.emacswiki.org/emacs/ELPA][ELPA]]
+* [[http://www.emacswiki.org/emacs/ELPA][ELPA]]
#+BEGIN_SRC emacs-lisp
(if (>= emacs-major-version 24)
)
#+END_SRC
-*** magit
+* magit
For annotated tags prepare message with commit messages since last tag.
)
#+END_SRC
-*** fullframe
+* fullframe
open ibuffer and magit-status in fullframe mode.
#+BEGIN_SRC emacs-lisp
(if (>= emacs-major-version 24)
)
)
#+END_SRC
-*** [[http://www.gnu.org/software/emacs/manual/html_node/emacs/Window-Convenience.html][winner-mode]]
+* [[http://www.gnu.org/software/emacs/manual/html_node/emacs/Window-Convenience.html][winner-mode]]
[2015-06-10 Wed 09:33]
Get undo for your window layout.
(if (>= emacs-major-version 24)
(winner-mode 1))
#+END_SRC
-*** smartparens-mode
+* smartparens-mode
Enable smart parens in all modes.
See [[https://github.com/toctan/smartparens][Smartparens on github]].
(smartparens-global-mode 1)
))
#+END_SRC
-*** [[https://github.com/hrs/engine-mode][engine-mode]]
+* [[https://github.com/hrs/engine-mode][engine-mode]]
search the web on your fingertips. C-c /.
)
#+END_SRC
-*** expand-region
+* expand-region
[2015-04-02 Thu 10:32]
#+BEGIN_SRC emacs-lisp
))
#+END_SRC
-*** yasnippet
+* yasnippet
My first thought: Nice. But do I have a use case? After half a year I
cannot live without it. I write most of my [[http://www.cfengine.com][CFEngine]] code with
)
)
#+END_SRC
-*** [[https://github.com/flycheck/flycheck][flycheck]]
+* [[https://github.com/flycheck/flycheck][flycheck]]
#+BEGIN_SRC emacs-lisp
(if (>= emacs-major-version 24)
))
#+END_SRC
-*** [[https://github.com/kai2nenobu/guide-key][guide-key]]
+* [[https://github.com/kai2nenobu/guide-key][guide-key]]
Probably the best help to keep track of the not every day used keybindings.
(setq guide-key/idle-delay 3)
(guide-key-mode 1)
#+END_SRC
-*** latex
+* latex
#+BEGIN_SRC emacs-lisp
(setq tex-dvi-view-command "(f=*; pdflatex \"${f%.dvi}.tex\" && open \"${f%.dvi}.pdf\")")
#+END_SRC
-*** template support
+* template support
Some default templates for new files are stored in [[templates/]].
No need to start .pl .sh from scratch.
(template-initialize)
#+END_SRC
-*** thesaurus
+* thesaurus
#+BEGIN_SRC emacs-lisp
;; The file names are absolute, not relative, locations
#+END_SRC
-*** yaml mode
+* yaml mode
#+BEGIN_SRC emacs-lisp
;; load yaml-mode
;; (require 'yaml-mode)
#+END_SRC
-*** htmlize
+* htmlize
#+BEGIN_SRC emacs-lisp
(if (>= emacs-major-version 24)
#+END_SRC
-*** vc-git
+* vc-git
#+BEGIN_SRC emacs-lisp
(require 'vc-git)
#+END_SRC
-*** ace-jump-mode
+* ace-jump-mode
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "~/.emacs.d/elpa/ace-jump-mode-20140616.115")
#+END_SRC
-*** ido-mode
+* ido-mode
I still like ido-find-file.
#+END_SRC
-*** visual-regexp
+* visual-regexp
#+BEGIN_SRC emacs-lisp
(if (>= emacs-major-version 24)
)
#+END_SRC
-*** org-mode
+* org-mode
See [[http://orgmode.org/worg/org-tutorials/orgtutorial_dto.html][orgtutorial_dto]] for details.
#+END_SRC
-*** cfengine
+* cfengine
#+BEGIN_SRC emacs-lisp
;; (load-library "cfengine")
=cut
#+END_SRC
-*** mwheel
+* mwheel
#+BEGIN_SRC emacs-lisp
(load-library "mwheel")
#+END_SRC
-*** [[http://emacs.wordpress.com/2007/06/21/tip-of-the-day/][tip of the day]]
+* [[http://emacs.wordpress.com/2007/06/21/tip-of-the-day/][tip of the day]]
[2014-09-24 Wed 12:06]
Display an Emacs tip of the day.
(buffer-string)))))))
#+END_SRC
-*** TRAMP
+* TRAMP
#+BEGIN_SRC emacs-lisp
(load-library "tramp")
(add-to-list 'tramp-default-proxies-alist '(".*" "\`root\'" "/ssh:%h:"))
#+END_SRC
-*** [[http://www.twmode.sourceforge.net/][twitter]]
+* [[http://www.twmode.sourceforge.net/][twitter]]
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "~/.emacs.d/elpa/twittering-mode-20150131.708")
#+END_SRC
-*** elfeed
+* elfeed
#+BEGIN_SRC emacs-lisp
(if (>= emacs-major-version 24)
(progn
(elfeed-org)
(setq rmh-elfeed-org-files (list "~/org/elfeed.org"))))
#+END_SRC
-*** [[http://www.emacswiki.org/emacs/MalyonMode][Mylon]]
+* [[http://www.emacswiki.org/emacs/MalyonMode][Mylon]]
#+BEGIN_SRC emacs-lisp
(require 'malyon)
#+END_SRC
-*** TemplateToolkit
+* TemplateToolkit
#+BEGIN_SRC emacs-lisp
(add-to-list 'auto-mode-alist '("\\.tt2$" . html-mode))
#+END_SRC
-*** EPG/GPG
+* EPG/GPG
#+BEGIN_SRC emacs-lisp
;; Do not use gpg agent when runing in terminal
#+END_SRC
-*** Perl
+* Perl
#+BEGIN_SRC emacs-lisp
(require 'cperl-mode)
#+END_SRC
-*** auto-completion
+* auto-completion
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "~/.emacs.d/elpa/auto-complete-20150618.1949")
#+END_SRC
-*** syntax-highlighting
+* syntax-highlighting
#+BEGIN_SRC emacs-lisp
(font-lock-mode)
(global-font-lock-mode 1)
#+END_SRC
-*** remove trailing whitespace
+* remove trailing whitespace
[2014-09-24 Wed 16:56]
There are some file formats out there where you shouldn't use this
#+END_SRC
-*** mode-line menu-bar etc
+* mode-line menu-bar etc
#+BEGIN_SRC emacs-lisp
(column-number-mode t)
#+END_SRC
-*** Art Bollocks Mode
+* Art Bollocks Mode
[2014-09-28 Sun 22:33]
Keeps track of your writing.
)
#+END_SRC
-*** window management
+* window management
[2014-09-24 Wed 13:03]
Bind f3 and f4 to previous/next pane.
(global-set-key (kbd "<f4>") 'move-cursor-next-pane)
#+END_SRC
-*** [[https://github.com/dotemacs/ipcalc.el][ipcalc]]
+* [[https://github.com/dotemacs/ipcalc.el][ipcalc]]
#+BEGIN_SRC emacs-lisp
(require 'ipcalc)
#+END_SRC
-*** [[http://www.emacswiki.org/emacs/RecentFiles][RecentFiles]]
+* [[http://www.emacswiki.org/emacs/RecentFiles][RecentFiles]]
#+BEGIN_SRC emacs-lisp
(require 'recentf)
(global-set-key "\C-cr" 'recentf-open-files))
#+END_SRC
-*** insert-date function
+* insert-date function
#+BEGIN_SRC emacs-lisp
- (defun insert-date ()
- "Insert the current date"
- (interactive)
- (insert-string (format-time-string "%B %e, %Y")))
- (defun insert-timestamp ()
- "Insert the current timestamp"
- (interactive)
- (insert-string (format-time-string "%a %b %e %Y") " " (or (and (boundp 'user-full-name) user-full-name) (user-full-name))" <" (getenv "EMAIL") ">" ))
+ (defun insert-date ()
+ "Insert the current date"
+ (interactive)
+ (insert-string (format-time-string "%B %e, %Y")))
+ (defun insert-timestamp ()
+ "Insert the current timestamp"
+ (interactive)
+ (insert-string (format-time-string "%a %b %e %Y") " " (or (and (boundp 'user-full-name) user-full-name) (user-full-name))" <" (getenv "EMAIL") ">" ))
+ (defun bba-insert-name ()
+ "Insert name and emailaddress of current systemuser."
+ (interactive)
+ (insert-string (or (and (boundp 'user-full-name) user-full-name) (user-full-name))" <" (getenv "EMAIL") ">" ))
#+END_SRC
-*** [[http://www.howardism.org/Technical/Emacs/eshell-fun.html][eshell-here]]
+* [[http://www.howardism.org/Technical/Emacs/eshell-fun.html][eshell-here]]
Thanks to Howard Abrams.
modified because current version lacks function have
window-total-height.
#+END_SRC
-*** [[http://stackoverflow.com/questions/3035337/in-emacs-can-you-evaluate-an-emacs-lisp-expression-and-replace-it-with-the-resul][eval emacs lisp expression and replace it]]
+* [[http://stackoverflow.com/questions/3035337/in-emacs-can-you-evaluate-an-emacs-lisp-expression-and-replace-it-with-the-resul][eval emacs lisp expression and replace it]]
[2014-11-02 Sun 18:21]
Use =C-c E= to evaluate and replace the last s-expression.
(define-key global-map "\C-c\S-e" 'bba/eval-last-sexp-replace)
#+END_SRC
-*** goto-match-paren
+* goto-match-paren
#+BEGIN_SRC emacs-lisp
(defun goto-match-paren (arg)
"Go to the matching parenthesis if on parenthesis, otherwise insert %.
#+END_SRC
-*** safe hash bang files executable
+* safe hash bang files executable
safe files with #! in first line as user executable.
#+BEGIN_SRC emacs-lisp
#+END_SRC
-*** move lines
+* move lines
[2014-11-11 Tue 12:24]
=M-p= and =M-n= to move current line up or down.
(global-set-key (kbd "M-n") 'bba/move-line-down)
#+END_SRC
-*** helm
+* helm
Some links you might check out:
)
#+END_SRC
-*** [[http://emacswiki.org/emacs/KeyChord][key-chord]]
+* [[http://emacswiki.org/emacs/KeyChord][key-chord]]
combine key strokes to access commands even faster.
#+END_SRC
-*** key bindings
+* key bindings
#+BEGIN_SRC emacs-lisp
(define-key global-map "\C-x\S-f" 'find-file-at-point)
(global-set-key (kbd "C-M-r") 'isearch-backward)
#+END_SRC
-*** configure some default values
+* configure some default values
[2014-10-02 Thu 00:27]
Specify printing format
#+END_SRC
-*** other stuff
+* other stuff
#+BEGIN_SRC emacs-lisp
#+END_SRC
-*** set theme bba1
+* set theme bba1
[[https://emacsfodder.github.io/emacs-theme-editor/][Emacs Theme Editor]] is a nice tool to define your colors.
#+END_SRC
-*** load custom file
+* load custom file
[2014-10-02 Thu 00:37]
#+BEGIN_SRC emacs-lisp
#+END_SRC
-*** Set default font on Mac
+* Set default font on Mac
#+BEGIN_SRC emacs-lisp
(if (string-equal system-type "darwin")
-*** dns-mode
+* dns-mode
If you edit zone files via TRAMP you might want to activate them via
=rndc reload=. =C-c C-r= just does that for you.
))
#+END_SRC
-*** save history
+* save history
[2015-04-05 Sun 12:57]
Write a history of your emacs into your org git repository.
)
#+END_SRC
-*** done
+* done
Display greetings:
#+END_SRC
[2014-08-27 Wed 11:02]
-** old config
+* old config
#+BEGIN_SRC emacs-lisp :eval no :tangle no