wok-stable view emacs/stuff/default.el @ rev 1223
php: declare /etc/php.ini
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 10 09:23:04 2008 +0000 (2008-08-10) |
parents | |
children |
line source
1 ;; SilTaz Emacs site file
2 ;;
3 ;; Last update: 2008-06-28
4 ;;
5 ;; SliTaz receipt files
6 ;; Force emacs in shell-script-mode
7 (setq auto-mode-alist (cons '("receipt" . shell-script-mode) auto-mode-alist))
9 ;; LUA programming Language
10 ;; add major-mode for editing Lua scripts
11 (setq auto-mode-alist (cons '("\\.lua$" . lua-mode) auto-mode-alist))
12 (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
15 ;; Force emacs to use tabs
16 ;; From Scott Hurring's HOWTO
17 ;; Turn on tabs
18 (setq indent-tabs-mode t)
19 (setq-default indent-tabs-mode t)
21 ;; Bind the TAB key
22 (global-set-key (kbd "TAB") 'self-insert-command)
24 ;; Set the tab width
25 (setq default-tab-width 4)
26 (setq tab-width 4)
27 (setq c-basic-indent 4)
30 ;; Following lines has been grabbed from dot emacs file for Maemo (nokia tablets):
31 ;; christof sietchtabr at gmail
32 ;;
33 ;; the dired, list-directory, and gzip fixes all come from the
34 ;; packager of the emacs deb and responses from other maemo community members
35 ;; http://danielsz.freeshell.org/code/mine/emacs-for-maemo/index.shtml
36 ;;
37 ;; make dired work
38 ;; --dired option is not supported on busybox ls command
39 (setq dired-use-ls-dired nil)
41 ;; make list-directory work
42 ;; -F not supported by busybox ls command
43 (setq list-directory-brief-switches "-C")
46 ;; we *REALLY* don't want to spew file backups all over the fs.
47 ;; code to place all backups in one location
48 (when (not (file-directory-p "~/.backup"))
49 (make-directory "~/.backup"))
50 (if (file-directory-p "~/.backup")
51 (setq backup-directory-alist '(("." . "~/.backup"))))
53 ;; custom variable setting to make info work using busybox gzip
55 (custom-set-variables
56 ;; custom-set-variables was added by Custom.
57 ;; If you edit it by hand, you could mess it up, so be careful.
58 ;; Your init file should contain only one such instance.
59 ;; If there is more than one, they won't work right.
60 '(jka-compr-compression-info-list (quote (["\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "compress" ("-c") "u\
61 ncompressing" "uncompress" ("-c") nil t "^_\x9d"] ["\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'" "bzip2ing" "bzip2" nil "b\
62 unzip2ing" "bzip2" ("-d") nil t "BZh"] ["\\.tbz\\'" "bzip2ing" "bzip2" nil "bunzip2ing" "bzip2" ("-d") nil nil\
63 "BZh"] ["\\.tgz\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-q" "-d") t nil "^_\x8b"] ["\\.\
64 g?z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-d") t t "^_\x8b"] ["\\
65 \.dz\\'" nil nil nil "uncompressing" "gzip" ("-c" "-d") nil t "^_\x8b"]))))