wok annotate emacs/stuff/default.el @ rev 1602

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