DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th October 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Thanked 2 Times in 2 Posts
Default C/C++ Syntax highlighting in emacs

How can I permanently enable syntax highlighting in Emacs.
Reply With Quote
  #2   (View Single Post)  
Old 12th October 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

On my system it automatically loads the correct mode and syntax highlighting (even when launched with -Q), but here are some suggestions:

Code:
;; try syntax highlighting always, no matter what mode
(global-font-lock-mode 1)
I know enough lisp to get by, but being a vim user, I don't speak emacese very well; here are a few useful references:

FreeBSD Developers handbook, Using Emacs as an IDE

How to turn on syntax highlighting; from some gnu emacs related faq
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Reply

Tags
emacs freebsd, syntax highlighting

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
4.5 on macppc: emacs package, compiling ports moosejaw OpenBSD Packages and Ports 16 19th October 2009 08:25 PM
Emacs nox11 unixbsd FreeBSD Ports and Packages 2 18th March 2009 02:17 PM
Syntax Highlighting JMJ_coder Programming 17 22nd June 2008 02:24 PM
Vi type syntax applications corey_james Off-Topic 9 28th May 2008 04:15 PM
Emacs without X? clevershark FreeBSD Ports and Packages 3 21st May 2008 05:02 PM


All times are GMT. The time now is 11:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick