2010-12-13 11:55:08 +02:00
|
|
|
;; Emacs startup file for OpenWRT Emacs package
|
|
|
|
;;
|
|
|
|
;; Copyright (C) 2010 David Kuehling <dvdkhlng TA gmx TOD de>
|
2010-12-19 12:09:26 +02:00
|
|
|
;; License: GPLv2 or later; NO WARRANTY.
|
2010-12-13 11:55:08 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
;; load documentation for internal functions. This is skipped by loadup.el
|
|
|
|
;; when not dumping so we do it here.
|
|
|
|
(Snarf-documentation "DOC")
|
|
|
|
|
2010-12-17 19:00:14 +02:00
|
|
|
;; On openwrt 'ls' is provided by busybox. That version of 'ls' does not
|
|
|
|
;; support the --dired option, make Emacs work around that.
|
|
|
|
(setq dired-use-ls-dired nil)
|
|
|
|
|
2010-12-14 10:10:50 +02:00
|
|
|
;; Allow us to output international characters to the terminal
|
2010-12-13 11:55:08 +02:00
|
|
|
(set-terminal-coding-system 'utf-8)
|
2010-12-16 01:36:49 +02:00
|
|
|
|
|
|
|
;; Do not show the menu bar. What use is it without a mouse?
|
|
|
|
;; (Note that you can still use the menu via <Esc> x menu-bar-open
|
|
|
|
;; or tmm-menubar
|
|
|
|
(menu-bar-mode 0)
|
2010-12-17 19:00:14 +02:00
|
|
|
|
2011-05-12 23:43:56 +03:00
|
|
|
;; For some reason emacs 23.2 does not come with colored comments by default
|
|
|
|
;; we fix this here (todo: chose a better color?)
|
|
|
|
(set-face-foreground 'font-lock-comment-face "blue")
|
2011-06-26 11:53:45 +03:00
|
|
|
|
|
|
|
;; f11/f12 are the volume keys on Ben NonoNote. Use them as a replacement for
|
|
|
|
;; PgUp/PgDown
|
|
|
|
(global-set-key [f11] 'scroll-down)
|
|
|
|
(global-set-key [f12] 'scroll-up)
|