wok-current diff emacs/stuff/default.el @ rev 4794

krb5: Add file list for libcommerr3 and libkrb5support.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Jan 16 23:33:06 2010 +0100 (2010-01-16)
parents 6aae08641f1e
children 0eb1f12caf8e
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/emacs/stuff/default.el	Sat Jan 16 23:33:06 2010 +0100
     1.3 @@ -0,0 +1,59 @@
     1.4 +;; Emacs default file for SliTaz
     1.5 +;; (C) GNU gpl v3 - SliTaz GNU/Linux 2009
     1.6 +;; Last update: 2009-08-22
     1.7 +;;
     1.8 +;; Add support for SliTaz receipt files
     1.9 +;; force emacs in shell-script-mode                                 
    1.10 +(setq auto-mode-alist (cons '("receipt" . shell-script-mode) auto-mode-alist))
    1.11 +
    1.12 +;; Force emacs to use tabs
    1.13 +;;  from Scott Hurring's HOWTO
    1.14 +;;  turn on tabs
    1.15 +(setq indent-tabs-mode t)
    1.16 +(setq-default indent-tabs-mode t)
    1.17 +
    1.18 +;;  bind the TAB key 
    1.19 +(global-set-key (kbd "TAB") 'self-insert-command)
    1.20 +
    1.21 +;;  set the tab width
    1.22 +(setq default-tab-width 4)
    1.23 +(setq tab-width 4)
    1.24 +(setq c-basic-indent 4)
    1.25 +
    1.26 +
    1.27 +;; Following lines has been grabbed from dot emacs file for Maemo (nokia tablets):
    1.28 +;; christof sietchtabr at gmail                                                                                         
    1.29 +;;                                                                                                             
    1.30 +;; the dired, list-directory, and gzip fixes all come from the                                                 
    1.31 +;; packager of the emacs deb and responses from other maemo community members                                        
    1.32 +;; http://danielsz.freeshell.org/code/mine/emacs-for-maemo/index.shtml                                         
    1.33 +;;                                                                                                             
    1.34 +;; make dired work                                                                                             
    1.35 +;; --dired option is not supported on busybox ls command                                                       
    1.36 +(setq dired-use-ls-dired nil)
    1.37 +
    1.38 +;; make list-directory work                                                                                    
    1.39 +;; -F not supported by busybox ls command                                                                      
    1.40 +(setq list-directory-brief-switches "-C")
    1.41 +
    1.42 +
    1.43 +;; we *REALLY* don't want to spew file backups all over the fs.                                                
    1.44 +;; code to place all backups in one location                                                                   
    1.45 +(when (not (file-directory-p "~/.backup"))
    1.46 +  (make-directory "~/.backup"))
    1.47 +(if (file-directory-p "~/.backup")
    1.48 +    (setq backup-directory-alist '(("." . "~/.backup"))))
    1.49 +
    1.50 +;; custom variable setting to make info work using busybox gzip                                          
    1.51 +
    1.52 +(custom-set-variables
    1.53 +  ;; custom-set-variables was added by Custom.                                                                 
    1.54 +  ;; If you edit it by hand, you could mess it up, so be careful.                                              
    1.55 +  ;; Your init file should contain only one such instance.                                                     
    1.56 +  ;; If there is more than one, they won't work right.                                                         
    1.57 + '(jka-compr-compression-info-list (quote (["\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "compress" ("-c") "u\
    1.58 +ncompressing" "uncompress" ("-c") nil t "^_\x9d"] ["\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'" "bzip2ing" "bzip2" nil "b\
    1.59 +unzip2ing" "bzip2" ("-d") nil t "BZh"] ["\\.tbz\\'" "bzip2ing" "bzip2" nil "bunzip2ing" "bzip2" ("-d") nil nil\
    1.60 + "BZh"] ["\\.tgz\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-q" "-d") t nil "^_\x8b"] ["\\.\
    1.61 +g?z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-d") t t "^_\x8b"] ["\\
    1.62 +\.dz\\'" nil nil nil "uncompressing" "gzip" ("-c" "-d") nil t "^_\x8b"]))))