From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: How to create my own mode?
Date: Fri, 18 Nov 2005 16:07:46 +0100 [thread overview]
Message-ID: <877jb6570d.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 1132309438.172206.208080@z14g2000cwz.googlegroups.com
Jeckob@gmx.net writes:
> Thanks you all and especialy Pascal,
> you are really a helpful person...thanks again.
>
> Can you explain me the following line you wrote to me:
> (local-set-key (kbd "C-RET") (function newline)))))
>
> why do you use C-RET to call newline ???
because you want to use RET to call format/align-and-newline. So when
you'll type RET, you get your formating, and if you want to insert a
newline without any formating you'd have to type: C-q C-j
but I think it'll be easier to type C-RET.
[ and of course, you'll have removed the "hk" characters; sometimes my
iBook keyboard doesn't realize I'm pressing the control key :-( ]
(local-set-key (kbd "RET")hk (function format/align-and-newline))
--> (local-set-key (kbd "RET") (function format/align-and-newline))
> sorry, but tryin to understand every piece of code.
> Thanks
--
"Specifications are for the weak and timid!"
next prev parent reply other threads:[~2005-11-18 15:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-17 13:56 How to create my own mode? Jeckob
2005-11-17 16:40 ` Pascal Bourguignon
2005-11-17 18:04 ` Henrik Enberg
[not found] ` <mailman.15669.1132250677.20277.help-gnu-emacs@gnu.org>
2005-11-18 10:23 ` Jeckob
2005-11-18 15:07 ` Pascal Bourguignon [this message]
2005-11-21 11:12 ` Jeckob
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877jb6570d.fsf@thalassa.informatimago.com \
--to=spam@mouse-potato.com \
/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.
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).