Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

Hightlights Syntax in emacs 20.3

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
andrewma
Asked:
andrewma
1 Solution
 
JYoungmanCommented:
;; 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now