Article View: gnu.emacs.bug
Article #98587variables
From: May Lee
Date: Tue, 30 Apr 1991 22:25
Date: Tue, 30 Apr 1991 22:25
23 lines
1301 bytes
1301 bytes
gnu emacs have been installed on my SPARC 2 workstation recently.
I've done some programming of the keys. Most of them worked. The problem
I have is setting the variable toggle-wrap which makes the line wrap or not
to wrap when depressing a defined key.
This is what I have in the .emacs file:
(global-set-key "^[h" 'toggle-wrap) ; R6
(defun
toggle-wrap ()
(if (= truncate-lines nil)
(setq truncate-lines 1))
(if (> truncate-lines nil)
(setq truncate-lines nil))
)
Is there anything wrong with this?
What it is supposed to do is when the line is wrapped and R6 is depressed
it should unwrap it and vice-a-versa.
may lee
apache!mlee%cs.utexas.edu@oakhill.uucp
Technical Details
Message-ID:
<1991Apr30.222526.2541@oakhill.sps.mot.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbageShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,e8ad000a43bb9eb4,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-04-30 15:25:26 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage From: mlee@oakhill.sps.mot.com (May Lee) Newsgroups: gnu.emacs.bug Subject: variables Message-ID: <1991Apr30.222526.2541@oakhill.sps.mot.com> Date: 30 Apr 91 22:25:26 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: Motorola Inc., Austin, Texas Lines: 23 Approved: bug-gnu-emacs@prep.ai.mit.edu