I just tried Gnu emacs 23 automatic long line wrapping feature using M-x auto-fill-mode
. it works perfectly. Now I modified my .emacs
file as following to have this feature always turned on but it doesn't work ...
;;; Xemacs backwards compatibility file
(setq user-init-file
(expand-file-name "init.el"
(expand-file-name ".xemacs" "~")))
(setq custom-file
(expand-file-name "custom.el"
(expand-file-name ".xemacs" "~")))
(load-file user-init-file)
(load-file custom-file)
(global-linum-mode t)
;;; Scrollbar on the right
(set-scroll-bar-mode 'right)
;;; Open help file
(find-file "/home/manu/These/Docs/Emacs-Shortcuts")
(split-window-horizontally)
;;; Transparency
;;(set-frame-parameter (selected-frame) 'alpha '(<active> [<inactive>]))
(set-frame-parameter (selected-frame) 'alpha '(85 50))
(add-to-list 'default-frame-alist '(alpha 85 50))
;;; Auto fill to wrap long lines
(add-hook 'text-mode-hook 'turn-on-auto-fill)
Where am I wrong ?