From: prad <prad@towardsfreedom.com>
To: help-gnu-emacs@gnu.org
Subject: Re: question regarding to 2 features of Emacs
Date: Thu, 12 Mar 2009 21:34:07 -0700 [thread overview]
Message-ID: <20090312213407.2ca40b7b@gom.home> (raw)
In-Reply-To: <49B9BE9B.6000706@student.canterbury.ac.nz>
On Fri, 13 Mar 2009 15:02:03 +1300
Jidi Sun <jsu25@student.canterbury.ac.nz> wrote:
> On the internet I saw pictures of Emacs with different
> colors shown for different parts of function,
>
jidi,
you can enable syntax highlight by activating
M-x font-lock-mode
(http://linux.about.com/od/emacs_doc/a/emacsdoc171.htm)
or you can put it into your .emacs file according to that page
> also it is able to
> start with some spaces from left margin once press Enter key within a
> function.
>
i think what you mean is to have automatic indenting which can be done
by C-j instead of enter as long as you have a .el file for the language
you are using (though it is possible to have the enter key do this too
by putting this in your .emacs:
;; Default to auto-indent on Enter
(define-key emacs-lisp-mode-map [(control j)] 'newline)
(define-key emacs-lisp-mode-map [(control m)] 'newline-and-indent)))
--
In friendship,
prad
... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
next prev parent reply other threads:[~2009-03-13 4:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-13 2:02 question regarding to 2 features of Emacs Jidi Sun
2009-03-13 4:34 ` prad [this message]
2009-03-13 9:20 ` Peter Dyballa
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090312213407.2ca40b7b@gom.home \
--to=prad@towardsfreedom.com \
--cc=help-gnu-emacs@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.