Solved

Hightlights Syntax in emacs 20.3

Posted on 1998-09-15
1
318 Views
Last Modified: 2010-04-20
In emacs 20.3, there is a option under the menu item help, named hightlights-syntax.  How can I put it as an default option on in .emacs file ?
0
Comment
Question by:andrewma
1 Comment
 
LVL 2

Accepted Solution

by:
JYoungman earned 50 total points
ID: 1638040
;; Put this in the .emacs file
(require 'font-lock)
(add-hook 'find-file-hooks 'turn-on-font-lock)

;; I also use this:-
(defun setup-jay-c-mode ()
  (interactive)
  (setq font-lock-maximum-decoration 't)
  (turn-on-line-number-mode)
  (turn-on-font-lock)
  (c-toggle-auto-state 1)
  (setq c-hanging-braces-alist '()))

(add-hook 'c-mode-common-hook 'setup-jay-c-mode)

0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question