ah, very nice and easy. That was the call I was looking for. So now I have toggle-truncate-lines bound to C-x-q, but I cannot use it in the file I want, which is in Python mode. I get the message "Not defining or executing kbd macro".
I have it bound like this: (global-set-key (kbd "C-x q") 'toggle-truncate-lines) .. maybe there is a better way to bind it? I'm just kindof hacking at the .emacs file, don't really know the api well. On Thu, Oct 23, 2008 at 2:44 AM, Sebastian Rose <[EMAIL PROTECTED]> wrote: > Funny enough, yesterday I wrote this one here: > > > > (defun my-toggle-truncate-lines () > "Toggle truncate-lines." > (interactive) > (setq truncate-lines (if truncate-lines nil t))) > > > > I've bound it to H-t (I like those windows keys in Linux/GNU :-) and use > it a lot (since yesterday). It's so usefull, that I wonder if something > like this is in emacs already??? > > > > > Bernt Hansen wrote: >> >> "Rich E" <[EMAIL PROTECTED]> writes: >> >>> I just have a simple question: how can I wrap the headings so they >>> don't go off the visual window? >> >> M-x set-truncate-lines >> >> It toggles line wrapping on and off. >> >> -Bernt >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode