wok-6.x rev 3939
emacs 23.1: small adjustments
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Sat Aug 22 11:15:56 2009 +0200 (2009-08-22) |
parents | 6aae08641f1e |
children | 7ed2560e7d93 |
files | emacs-pkg-lua-mode/receipt emacs-pkg-lua-mode/stuff/90-lua-mode.el emacs-pkg-lua-mode/stuff/lua-mode-start.el emacs/receipt emacs/stuff/90-slitaz.el emacs/stuff/default.el emacs/stuff/slitaz.el |
line diff
1.1 --- a/emacs-pkg-lua-mode/receipt Fri Aug 21 21:49:57 2009 +0200 1.2 +++ b/emacs-pkg-lua-mode/receipt Sat Aug 22 11:15:56 2009 +0200 1.3 @@ -32,3 +32,13 @@ 1.4 cp stuff/*.el $fs/usr/share/emacs/site-lisp/site-start.d 1.5 status 1.6 } 1.7 + 1.8 +post_install() 1.9 +{ 1.10 + tazpkg reconfigure emacs 1.11 +} 1.12 + 1.13 +post_remove() 1.14 +{ 1.15 + tazpkg reconfigure emacs 1.16 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/emacs-pkg-lua-mode/stuff/90-lua-mode.el Sat Aug 22 11:15:56 2009 +0200 2.3 @@ -0,0 +1,18 @@ 2.4 +;; lua-mode start file for SliTaz 2.5 +;; Last update: 2009-08-22 2.6 +;; 2.7 +;; To set up Emacs to automatically edit files ending in .lua using Lua-mode 2.8 + 2.9 +(setq auto-mode-alist (cons '("\\.lua$" . lua-mode) auto-mode-alist)) 2.10 +(autoload 'lua-mode "lua-mode" "Lua editing mode." t) 2.11 + 2.12 +;; If you want colorization, turn on global-font-lock or add this: 2.13 + 2.14 +(add-hook 'lua-mode-hook 'turn-on-font-lock) 2.15 + 2.16 +;; If you want to use hideshow, turn on hs-minor-mode or add this: 2.17 + 2.18 +(add-hook 'lua-mode-hook 'hs-minor-mode) 2.19 + 2.20 +;; 2.21 +
3.1 --- a/emacs-pkg-lua-mode/stuff/lua-mode-start.el Fri Aug 21 21:49:57 2009 +0200 3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 3.3 @@ -1,16 +0,0 @@ 3.4 -;; lua-mode start file for SliTaz 3.5 -;; 3.6 -;; (C) GNU gpl v3 - SliTaz GNU/Linux 2009. 3.7 -;; 3.8 -;; To set up Emacs to automatically edit files ending in .lua using Lua-mode 3.9 - 3.10 -(setq auto-mode-alist (cons '("\\.lua$" . lua-mode) auto-mode-alist)) 3.11 -(autoload 'lua-mode "lua-mode" "Lua editing mode." t) 3.12 - 3.13 -;; If you want colorization, turn on global-font-lock or add this: 3.14 - 3.15 -(add-hook 'lua-mode-hook 'turn-on-font-lock) 3.16 - 3.17 -;; If you want to use hideshow, turn on hs-minor-mode or add this: 3.18 - 3.19 -(add-hook 'lua-mode-hook 'hs-minor-mode)
4.1 --- a/emacs/receipt Fri Aug 21 21:49:57 2009 +0200 4.2 +++ b/emacs/receipt Sat Aug 22 11:15:56 2009 +0200 4.3 @@ -1,7 +1,5 @@ 4.4 # SliTaz package receipt. 4.5 4.6 -PACKED_SIZE="16.0M" 4.7 -UNPACKED_SIZE="57.6M" 4.8 PACKAGE="emacs" 4.9 VERSION="23.1" 4.10 CATEGORY="development" 4.11 @@ -112,7 +110,7 @@ 4.12 XPM_DIR=" images images/custom images/ezimage images/gnus images/gud images/mail images/smilies \ 4.13 images/smilies/grayscale images/smilies/medium images/tree-widget/default images/tree-widget/folder" 4.14 for dir in $XPM_DIR; do 4.15 - echo -n "Copying $dir files" 4.16 + echo -n "Copying $dir xpm files" 4.17 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ 4.18 cp $_pkg/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ 4.19 for file in COPYING README TODO; do 4.20 @@ -122,6 +120,12 @@ 4.21 done 4.22 status 4.23 done 4.24 + PNG_DIR=" images images/gnus images/tree-widget/default images/tree-widget/folder" 4.25 + for dir in $PNG_DIR; do 4.26 + echo -n "Copying $dir png files" 4.27 + cp $_pkg/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ 4.28 + status 4.29 + done 4.30 # Licence 4.31 GNU_FILES="AUTHORS BABYL CENSORSHIP COPYING DISTRIB FTP GNU ORDERS SERVICE copying.paper" 4.32 echo -n "Copying License files" 4.33 @@ -133,7 +137,8 @@ 4.34 echo -n "Installing specific SliTaz file" 4.35 mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \ 4.36 cp -a $_pkg/usr/share/$PACKAGE/site-lisp $fs/usr/share/$PACKAGE && \ 4.37 - cp -a stuff/slitaz.el $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \ 4.38 + cp -a stuff/default.el $fs/usr/share/$PACKAGE/site-lisp && \ 4.39 + cp -a stuff/90-slitaz.el $fs/usr/share/$PACKAGE/site-lisp/site-start.d 4.40 status 4.41 # Install desktop files for emacs 4.42 echo -n "Installing emacs menu" 4.43 @@ -152,6 +157,25 @@ 4.44 ln -s ../site-lisp site-lisp 4.45 } 4.46 4.47 +post_install() 4.48 +{ 4.49 + cd /usr/share/emacs/site-lisp 4.50 + cat <<-EOF >site-start.el 4.51 + ;; site-start.el for SliTaz -*- no-byte-compile: t -*- 4.52 + ;; 4.53 + ;; (C) GNU gpl v3 - SliTaz GNU/Linux 2009. 4.54 + ;; 4.55 + ;; This default site startup file for Emacs was created by tazpkg 4.56 + ;; reconfigure emacs. You may modify this file, replace it by your 4.57 + ;; own site initialisation, or even remove it completely. 4.58 + ;; 4.59 + EOF 4.60 + START_FILES=`ls site-start.d/ | sort` 4.61 + for file in $START_FILES; do 4.62 + cat site-start.d/$file >> site-start.el 4.63 + done 4.64 +} 4.65 + 4.66 post_remove() 4.67 { 4.68 rm -rf /usr/share/emacs
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/emacs/stuff/90-slitaz.el Sat Aug 22 11:15:56 2009 +0200 5.3 @@ -0,0 +1,9 @@ 5.4 +;; SliTaz start mode for emacs 5.5 +;; Last update: 2009-08-22 5.6 +;; 5.7 +;; Set font size to fit a 1024x768 screen 5.8 + 5.9 +(set-default-font "-*-*-*-*-*--12-*-*-*-*-*-*-*") 5.10 + 5.11 +;; 5.12 +
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/emacs/stuff/default.el Sat Aug 22 11:15:56 2009 +0200 6.3 @@ -0,0 +1,59 @@ 6.4 +;; Emacs default file for SliTaz 6.5 +;; (C) GNU gpl v3 - SliTaz GNU/Linux 2009 6.6 +;; Last update: 2009-08-22 6.7 +;; 6.8 +;; Add support for SliTaz receipt files 6.9 +;; force emacs in shell-script-mode 6.10 +(setq auto-mode-alist (cons '("receipt" . shell-script-mode) auto-mode-alist)) 6.11 + 6.12 +;; Force emacs to use tabs 6.13 +;; from Scott Hurring's HOWTO 6.14 +;; turn on tabs 6.15 +(setq indent-tabs-mode t) 6.16 +(setq-default indent-tabs-mode t) 6.17 + 6.18 +;; bind the TAB key 6.19 +(global-set-key (kbd "TAB") 'self-insert-command) 6.20 + 6.21 +;; set the tab width 6.22 +(setq default-tab-width 4) 6.23 +(setq tab-width 4) 6.24 +(setq c-basic-indent 4) 6.25 + 6.26 + 6.27 +;; Following lines has been grabbed from dot emacs file for Maemo (nokia tablets): 6.28 +;; christof sietchtabr at gmail 6.29 +;; 6.30 +;; the dired, list-directory, and gzip fixes all come from the 6.31 +;; packager of the emacs deb and responses from other maemo community members 6.32 +;; http://danielsz.freeshell.org/code/mine/emacs-for-maemo/index.shtml 6.33 +;; 6.34 +;; make dired work 6.35 +;; --dired option is not supported on busybox ls command 6.36 +(setq dired-use-ls-dired nil) 6.37 + 6.38 +;; make list-directory work 6.39 +;; -F not supported by busybox ls command 6.40 +(setq list-directory-brief-switches "-C") 6.41 + 6.42 + 6.43 +;; we *REALLY* don't want to spew file backups all over the fs. 6.44 +;; code to place all backups in one location 6.45 +(when (not (file-directory-p "~/.backup")) 6.46 + (make-directory "~/.backup")) 6.47 +(if (file-directory-p "~/.backup") 6.48 + (setq backup-directory-alist '(("." . "~/.backup")))) 6.49 + 6.50 +;; custom variable setting to make info work using busybox gzip 6.51 + 6.52 +(custom-set-variables 6.53 + ;; custom-set-variables was added by Custom. 6.54 + ;; If you edit it by hand, you could mess it up, so be careful. 6.55 + ;; Your init file should contain only one such instance. 6.56 + ;; If there is more than one, they won't work right. 6.57 + '(jka-compr-compression-info-list (quote (["\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "compress" ("-c") "u\ 6.58 +ncompressing" "uncompress" ("-c") nil t "^_\x9d"] ["\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'" "bzip2ing" "bzip2" nil "b\ 6.59 +unzip2ing" "bzip2" ("-d") nil t "BZh"] ["\\.tbz\\'" "bzip2ing" "bzip2" nil "bunzip2ing" "bzip2" ("-d") nil nil\ 6.60 + "BZh"] ["\\.tgz\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-q" "-d") t nil "^_\x8b"] ["\\.\ 6.61 +g?z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-d") t t "^_\x8b"] ["\\ 6.62 +\.dz\\'" nil nil nil "uncompressing" "gzip" ("-c" "-d") nil t "^_\x8b"]))))
7.1 --- a/emacs/stuff/slitaz.el Fri Aug 21 21:49:57 2009 +0200 7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 7.3 @@ -1,59 +0,0 @@ 7.4 -;; SilTaz Emacs site file 7.5 -;; 7.6 -;; Last update: 2009-08-15 7.7 -;; 7.8 -;; Add support for SliTaz receipt files 7.9 -;; force emacs in shell-script-mode 7.10 -(setq auto-mode-alist (cons '("receipt" . shell-script-mode) auto-mode-alist)) 7.11 - 7.12 -;; Force emacs to use tabs 7.13 -;; from Scott Hurring's HOWTO 7.14 -;; turn on tabs 7.15 -(setq indent-tabs-mode t) 7.16 -(setq-default indent-tabs-mode t) 7.17 - 7.18 -;; bind the TAB key 7.19 -(global-set-key (kbd "TAB") 'self-insert-command) 7.20 - 7.21 -;; set the tab width 7.22 -(setq default-tab-width 4) 7.23 -(setq tab-width 4) 7.24 -(setq c-basic-indent 4) 7.25 - 7.26 - 7.27 -;; Following lines has been grabbed from dot emacs file for Maemo (nokia tablets): 7.28 -;; christof sietchtabr at gmail 7.29 -;; 7.30 -;; the dired, list-directory, and gzip fixes all come from the 7.31 -;; packager of the emacs deb and responses from other maemo community members 7.32 -;; http://danielsz.freeshell.org/code/mine/emacs-for-maemo/index.shtml 7.33 -;; 7.34 -;; make dired work 7.35 -;; --dired option is not supported on busybox ls command 7.36 -(setq dired-use-ls-dired nil) 7.37 - 7.38 -;; make list-directory work 7.39 -;; -F not supported by busybox ls command 7.40 -(setq list-directory-brief-switches "-C") 7.41 - 7.42 - 7.43 -;; we *REALLY* don't want to spew file backups all over the fs. 7.44 -;; code to place all backups in one location 7.45 -(when (not (file-directory-p "~/.backup")) 7.46 - (make-directory "~/.backup")) 7.47 -(if (file-directory-p "~/.backup") 7.48 - (setq backup-directory-alist '(("." . "~/.backup")))) 7.49 - 7.50 -;; custom variable setting to make info work using busybox gzip 7.51 - 7.52 -(custom-set-variables 7.53 - ;; custom-set-variables was added by Custom. 7.54 - ;; If you edit it by hand, you could mess it up, so be careful. 7.55 - ;; Your init file should contain only one such instance. 7.56 - ;; If there is more than one, they won't work right. 7.57 - '(jka-compr-compression-info-list (quote (["\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "compress" ("-c") "u\ 7.58 -ncompressing" "uncompress" ("-c") nil t "^_\x9d"] ["\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'" "bzip2ing" "bzip2" nil "b\ 7.59 -unzip2ing" "bzip2" ("-d") nil t "BZh"] ["\\.tbz\\'" "bzip2ing" "bzip2" nil "bunzip2ing" "bzip2" ("-d") nil nil\ 7.60 - "BZh"] ["\\.tgz\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-q" "-d") t nil "^_\x8b"] ["\\.\ 7.61 -g?z\\(~\\|\\.~[0-9]+~\\)?\\'" "compressing" "gzip" ("-c") "uncompressing" "gzip" ("-c" "-d") t t "^_\x8b"] ["\\ 7.62 -\.dz\\'" nil nil nil "uncompressing" "gzip" ("-c" "-d") nil t "^_\x8b"]))))