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