Thanks,
One more thing about emacs. Is there a tutorial on the DOC system?
John
Jose Morales-3 wrote:
Hi John,
The following works for me:
(defun ciao-turn-off-tab-indent () (define-key ciao-mode-map (kbd "TAB") 'self-insert-command)) (add-hook 'ciao-mode-hook 'ciao-turn-off-tab-indent)
Your solution does not work because the Ciao mode initialization is lazy (it happens the first time that a .pl file is loaded, which is after global-set-key has been executed). The add-hook function tells the Ciao mode to execute a custom function just after the mode initialization.
Cheers, Jose
On Mon, Apr 1, 2013 at 2:01 PM, mcculloch <mccullochj(a)att.net> wrote:
I have in .emacs:
(load-file "/usr/lib/ciao/ciao-mode-init.el") (global-set-key (kbd "TAB") 'self-insert-command)
The last line is supposed to make TAB always insert a tab. It doesn't seems to be working.
Is it possible something in ciao-mode-init is making it not work?
Thanks, John
ciao wrote:
Does anyone know how to allow TABs before and in comments without destroying the intended function of Ciao mode?
If what you want is to insert a real tab you can do it by "quoting"it, i.e., by typing "C-qTAB". Hope this helps!
--
----------------------- The Ciao System Development Team
The CLIP Group | IMDEA Software Institute ciao(a)clip.dia.fi.upm.es | and Technical University of Madrid http://www.ciao-lang.org / http://www.cliplab.org
Ciao-users mailing list Ciao-users(a)clip.dia.fi.upm.es http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-users
-- View this message in context: http://old.nabble.com/Emacs-for-v.-1.15-tp35182162p35239843.html Sent from the Ciao Prolog - Users mailing list archive at Nabble.com.
Ciao-users mailing list Ciao-users(a)clip.dia.fi.upm.es http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-users
Ciao-users mailing list Ciao-users(a)clip.dia.fi.upm.es http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-users