wok view emacs/stuff/default.el @ rev 9949

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