From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: More problems with orgstruct++-mode, message-mode and auto fill
Date: Thu, 10 May 2012 10:28:07 +0200 [thread overview]
Message-ID: <80vck4o2y0.fsf@somewhere.org> (raw)
In-Reply-To: 87fwb8czl4.fsf@gnu.org
Hi,
Bastien wrote:
> Eric S Fraga <e.fraga-hclig2XLE9Zaa/9Udqfwiw@public.gmane.org> writes:
>>
>> I have emacs-goodies.el installed. What is it about this package that
>> causes problems?
>
> This package contains filladapt.el and filladapt.el _overwrites_ some
> fundamental variables about filling. Even if you are not using filladapt.el,
> it fill replace those variables... which is obvisouly plain wrong.
FWIW, I do use filladapt.el (version 2.12, directly downloaded from the Web,
long time ago), and never experienced troubles yet (in Gnus, with
orgstruct++-mode).
Bastien, you say we should get rid of it, but it seems the reason I have it on
my system is (or was) because "it does a better job than Emacs builtin
Adaptative Fill mode". Anybody: any comment on this?
#+begin_src emacs-lisp
;; enable FillAdapt (does a better job than Emacs builtin Adaptative
;; Fill mode)
(autoload 'turn-on-filladapt-mode "filladapt"
"Unconditionally turn on Filladapt mode in the current buffer.")
(autoload 'turn-off-filladapt-mode "filladapt"
"Unconditionally turn off Filladapt mode in the current buffer.")
(defun my/enable-filling ()
"Enable AutoFill and FillAdapt minor modes."
;; when inserting text, *automatically* break line at a previous
;; space, if the current column number is greater than the value of
;; `fill-column'
(turn-on-auto-fill)
;; turn on FillAdapt mode everywhere but in ChangeLog files
(cond ((equal mode-name "Change Log") t)
(t (turn-on-filladapt-mode))))
;; enable AutoFill and FillAdapt in Text and Org modes
(add-hook 'text-mode-hook 'my/enable-filling)
(add-hook 'org-mode-hook 'my/enable-filling)
#+end_src
In Gnus, this is my config:
#+begin_src emacs-lisp
;; operates on messages you send
(defun my/message-mode-hook ()
;; tab completion for alias in `.mailrc'
(local-set-key (kbd "<M-tab>") 'mail-abbrev-complete-alias)
;; enable automatic word-wrap when composing messages
(setq fill-column 78)
(turn-on-auto-fill)
(when (locate-library "org.el")
;; turn on the `org-mode' table editor
(turn-on-orgtbl)
;; turn on (the enhanced version of) orgstruct-mode
(turn-on-orgstruct++)
;; make `orgstruct-hijacker-command-22' rebind `M-q' to a message
;; specific function to fill a paragraph
(setq fill-paragraph-function 'message-fill-paragraph))
(when (locate-library "auto-complete.el")
(auto-complete-mode)))
(add-hook 'message-mode-hook 'my/message-mode-hook)
#+end_src
Notice that I had to add:
#+begin_src emacs-lisp
;; make `orgstruct-hijacker-command-22' rebind `M-q' to a message
;; specific function to fill a paragraph
(setq fill-paragraph-function 'message-fill-paragraph)
#+end_src
a couple of weeks ago, because the filling did not behave anymore like it did.
Best regards,
Seb
--
Sebastien Vauban
next prev parent reply other threads:[~2012-05-10 8:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-09 16:53 More problems with orgstruct++-mode, message-mode and auto fill Bernt Hansen
2012-05-09 17:03 ` Christopher Schmidt
2012-05-09 17:40 ` Bastien
2012-05-09 19:30 ` Bernt Hansen
2012-05-09 21:06 ` Bastien
2012-05-09 21:49 ` Bernt Hansen
2012-05-09 19:15 ` Thorsten Jolitz
2012-05-10 1:11 ` Eric S Fraga
2012-05-10 6:36 ` Bastien
2012-05-10 8:28 ` Sebastien Vauban [this message]
2012-05-10 9:26 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=80vck4o2y0.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).