* Start emacs with font-lock on and other minor doubts
@ 2008-06-11 3:40 Zei Hoffmann
2008-06-12 17:12 ` Nikolaj Schumacher
0 siblings, 1 reply; 2+ messages in thread
From: Zei Hoffmann @ 2008-06-11 3:40 UTC (permalink / raw)
To: help-gnu-emacs
I tried the following in custom.el:
(global-font-lock-mode 1)
and
(add-hook 'c-mode-hook 'turn-on-font-lock)
and those two together and when I open a C source code it still do not
put font-lock minor mode on. I'm still learning emacs and I have zero
knowledge of Lisp. Why emacs is not putting font-lock on?
my custom.el file:
(custom-set-variables
'(compilation-window-height 10)
'(compile-command "c:\\mingw\\bin\\gcc "))
(custom-set-faces)
(define-key global-map [f11] 'bookmark-jump)
(define-key global-map [f12] 'bookmark-set)
(define-key global-map [f9] 'compile)
(define-key global-map [f10] 'recompile)
(global-font-lock-mode 1)
(add-hook 'c-mode-hook 'turn-on-font-lock)
Using XEmacs 24.4.21 in Windows XP.
How can I change the default behavior of identing lines in c-mode? The
default works like this
for (int i=0; i<10; i++) {
a+=i; <<== if I press enter here I will go
here
and only when I type the ; the line will be idented.
what I wanted is:
for (int i=0; i<10; i++) {
a+=i; <<== if I press enter here I will go
here
And when I type ; nothing happens;
Also, I had to manually create UserNameFolder\.xemacs\ folder in order
for xemacs to save my custom.el. Is that normal? Isn't the
configuration file supose to be named .emacs.el and be in My Documents
folder?
Any good tutorials to recommend for me? I want to use emacs to program
C mostly and it's hard to find a newbie tutorial that is not just a
bunch of commands like C-x C-f to open file.
Sorry if I posted this on the wrong mailing list, if I should had
posted on a specfic XEmacs mailing list or another one please give me
the url for those.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Start emacs with font-lock on and other minor doubts
2008-06-11 3:40 Start emacs with font-lock on and other minor doubts Zei Hoffmann
@ 2008-06-12 17:12 ` Nikolaj Schumacher
0 siblings, 0 replies; 2+ messages in thread
From: Nikolaj Schumacher @ 2008-06-12 17:12 UTC (permalink / raw)
To: Zei Hoffmann; +Cc: help-gnu-emacs
Zei Hoffmann <hoffzei@gmail.com> wrote:
> Using XEmacs 24.4.21 in Windows XP.
This mailing list is about GNU Emacs.
All we can offer is to help you switch. :)
> Sorry if I posted this on the wrong mailing list, if I should had
> posted on a specfic XEmacs mailing list or another one please give me
> the url for those.
Maybe http://www.xemacs.org/Lists/ .
regards,
Nikolaj Schumacher
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-12 17:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 3:40 Start emacs with font-lock on and other minor doubts Zei Hoffmann
2008-06-12 17:12 ` Nikolaj Schumacher
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.