wok-6.x annotate emacs/stuff/default.el @ rev 3939
emacs 23.1: small adjustments
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Sat Aug 22 11:15:56 2009 +0200 (2009-08-22) |
parents | emacs/stuff/slitaz.el@6aae08641f1e |
children | 0eb1f12caf8e |
rev | line source |
---|---|
domcox@3939 | 1 ;; Emacs default file for SliTaz |
domcox@3939 | 2 ;; (C) GNU gpl v3 - SliTaz GNU/Linux 2009 |
domcox@3939 | 3 ;; Last update: 2009-08-22 |
domcox@3938 | 4 ;; |
domcox@3938 | 5 ;; Add support for SliTaz receipt files |
domcox@3938 | 6 ;; force emacs in shell-script-mode |
domcox@3938 | 7 (setq auto-mode-alist (cons '("receipt" . shell-script-mode) auto-mode-alist)) |
domcox@3938 | 8 |
domcox@3938 | 9 ;; Force emacs to use tabs |
domcox@3938 | 10 ;; from Scott Hurring's HOWTO |
domcox@3938 | 11 ;; turn on tabs |
domcox@3938 | 12 (setq indent-tabs-mode t) |
domcox@3938 | 13 (setq-default indent-tabs-mode t) |
domcox@3938 | 14 |
domcox@3938 | 15 ;; bind the TAB key |
domcox@3938 | 16 (global-set-key (kbd "TAB") 'self-insert-command) |
domcox@3938 | 17 |
domcox@3938 | 18 ;; set the tab width |
domcox@3938 | 19 (setq default-tab-width 4) |
domcox@3938 | 20 (setq tab-width 4) |
domcox@3938 | 21 (setq c-basic-indent 4) |
domcox@3938 | 22 |
domcox@3938 | 23 |
domcox@3938 | 24 ;; Following lines has been grabbed from dot emacs file for Maemo (nokia tablets): |
domcox@3938 | 25 ;; christof sietchtabr at gmail |
domcox@3938 | 26 ;; |
domcox@3938 | 27 ;; the dired, list-directory, and gzip fixes all come from the |
domcox@3938 | 28 ;; packager of the emacs deb and responses from other maemo community members |
domcox@3938 | 29 ;; http://danielsz.freeshell.org/code/mine/emacs-for-maemo/index.shtml |
domcox@3938 | 30 ;; |
domcox@3938 | 31 ;; make dired work |
domcox@3938 | 32 ;; --dired option is not supported on busybox ls command |
domcox@3938 | 33 (setq dired-use-ls-dired nil) |
domcox@3938 | 34 |
domcox@3938 | 35 ;; make list-directory work |
domcox@3938 | 36 ;; -F not supported by busybox ls command |
domcox@3938 | 37 (setq list-directory-brief-switches "-C") |
domcox@3938 | 38 |
domcox@3938 | 39 |
domcox@3938 | 40 ;; we *REALLY* don't want to spew file backups all over the fs. |
domcox@3938 | 41 ;; code to place all backups in one location |
domcox@3938 | 42 (when (not (file-directory-p "~/.backup")) |
domcox@3938 | 43 (make-directory "~/.backup")) |
domcox@3938 | 44 (if (file-directory-p "~/.backup") |
domcox@3938 | 45 (setq backup-directory-alist '(("." . "~/.backup")))) |
domcox@3938 | 46 |
domcox@3938 | 47 ;; custom variable setting to make info work using busybox gzip |
domcox@3938 | 48 |
domcox@3938 | 49 (custom-set-variables |
domcox@3938 | 50 ;; custom-set-variables was added by Custom. |
domcox@3938 | 51 ;; If you edit it by hand, you could mess it up, so be careful. |
domcox@3938 | 52 ;; Your init file should contain only one such instance. |
domcox@3938 | 53 ;; If there is more than one, they won't work right. |
domcox@3938 | 54 '(jka-compr-compression-info-list (quote (["\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "compress" ("-c") "u\ |
domcox@3938 | 55 ncompressing" "uncompress" ("-c") nil t "^_\x9d"] ["\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'" "bzip2ing" "bzip2" nil "b\ |
domcox@3938 | 56 unzip2ing" "bzip2" ("-d") nil t "BZh"] ["\\.tbz\\'" "bzip2ing" "bzip2" nil "bunzip2ing" "bzip2" ("-d") nil nil\ |
domcox@3938 | 57 "BZh"] ["\\.tgz\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-q" "-d") t nil "^_\x8b"] ["\\.\ |
domcox@3938 | 58 g?z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-d") t t "^_\x8b"] ["\\ |
domcox@3938 | 59 \.dz\\'" nil nil nil "uncompressing" "gzip" ("-c" "-d") nil t "^_\x8b"])))) |