LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-20-2007, 08:17 PM   #1
turbo_spool
LQ Newbie
 
Registered: Oct 2007
Location: Rome, NY
Distribution: Slackware, openSUSE, Fedora Core
Posts: 18

Rep: Reputation: 0
Question xemacs syntax highlighting only works on string literals! (Slackware)


Hello all,

Now this is quite a strange problem, and I have only ever ran into with my Slackware installation. After a fresh Slackware install, I downloaded the xemacs packgage from LinuxPackages and it seemed to install fine. The next thing I did was copy my custom.el file from my openSUSE installation to my Slackware directory.

The problem is, when I load up a file, say a c source file, and then enable font-lock-mode only the string literals are highlighted. I know the custom.el file is good because it is the one I used at work, however, with this particular version of Slackware (latest from the site) only strings get highlighted. Normally all my keywords and variables and what not would have their specified color, however all I see is white text on a black background (thats from my config at least) with quoted strings highlighted in green. To be as clear as possible, using my custom.el which I know works, with syntax highlighting enabled my background and foreground turn black and white respectively and any quoted strings turn green. However, my #include's are not highlighted, my for loops are not and so on...

Now I tried reinstalling both Slackware and xemacs. I even used older versions of xemacs for the hell of it. This is really strange because, if it is the same custom.el file, I don't know why any version of xemacs I install under Slackware has this issue.

Please help me stop scratching my head.

Thanks!
 
Old 11-20-2007, 10:05 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Take a look at ~/.xemacs/init.el. Look for this:
Quote:
;; Load custom file
;; ----------------
(setq custom-file "~/.xemacs/custom.el")
(load "~/.xemacs/custom.el" t t)
I don't know if it's in there by default. If it isn't, you need to add it to be able to use your custom.el.
 
Old 11-20-2007, 10:17 PM   #3
turbo_spool
LQ Newbie
 
Registered: Oct 2007
Location: Rome, NY
Distribution: Slackware, openSUSE, Fedora Core
Posts: 18

Original Poster
Rep: Reputation: 0
First off, I appreciate the quick reply.

However, that didn't seem to do it. When I went to edit my init.el file it was completely empty, so I added the lines you posed and saved it with no luck.

Still, with a C++ source file loaded, only quoted strings get highlighted. Quite a strange issue. And it seems to be reading the custom.el properly anyway, because I went to "Edit Faces" and all the colors selected were the ones specified in my custom.el file.
 
Old 11-22-2007, 11:25 AM   #4
turbo_spool
LQ Newbie
 
Registered: Oct 2007
Location: Rome, NY
Distribution: Slackware, openSUSE, Fedora Core
Posts: 18

Original Poster
Rep: Reputation: 0
Anyone? Even the emacs gurus at work were stumped on this one. I really don't want to switch editors just while using Slackware.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
syntax highlighting in vi mehrots Linux - Software 10 07-16-2007 09:50 AM
syntax highlighting rohr Programming 3 07-06-2005 07:07 AM
concentration of string literals with _FUNCTION_ is depreciated dzt Linux - Software 4 10-16-2003 01:38 PM
concentration of string literals with _FUNCTION_ is depreciated dzt Linux - General 0 10-16-2003 04:41 AM
xemacs syntax highlighting jclark00001 Linux - Software 2 04-13-2003 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration