Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 351
  • 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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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