Solved

Hightlights Syntax in emacs 20.3

Posted on 1998-09-15
1
304 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

777 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