wok-next view emacs/stuff/default.el @ rev 18404

gnome-keyring: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 19 09:46:36 2015 +0200 (2015-09-19)
parents 4cf5da7c32ac
children
line source
1 ;; Emacs default file for SliTaz
2 ;; (C) GNU gpl v3 - SliTaz GNU/Linux 2009-2013
3 ;; Last update: 2013-02-21
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:
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")
39 ;; we *REALLY* don't want to spew file backups all over the fs.
40 ;; code to place all backups in one location
41 (when (not (file-directory-p "~/.emacs.backup"))
42 (make-directory "~/.emacs.backup"))
43 (if (file-directory-p "~/.emacs.backup")
44 (setq backup-directory-alist '(("." . "~/.emacs.backup"))))
46 ;; custom variable setting to make info work using busybox gzip
47 (custom-set-variables
48 ;; custom-set-variables was added by Custom.
49 ;; If you edit it by hand, you could mess it up, so be careful.
50 ;; Your init file should contain only one such instance.
51 ;; If there is more than one, they won't work right.
52 '(jka-compr-compression-info-list (quote (["\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" \
53 "compressing" "compress" ("-c") "uncompressing" "uncompress" \
54 ("-c") nil t "^_\x9d"] ["\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'" "bzip2ing" ^
55 "bzip2" nil "bunzip2ing" "bzip2" ("-d") nil t "BZh"] ["\\.tbz\\'" "bzip2ing" \
56 "bzip2" nil "bunzip2ing" "bzip2" ("-d") nil nil "BZh"] \
57 ["\\.tgz\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" \
58 ("-c" "-q" "-d") t nil "^_\x8b"] ["\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" \
59 "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-d") t t \
60 "^_\x8b"] ["\\.dz\\'" nil nil nil "uncompressing" "gzip" ("-c" "-d") nil \
61 t "^_\x8b"]))))