Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]help an emacs newbie
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Rapsey
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2004
Posts: 87

PostPosted: Sun May 15, 2005 2:20 pm    Post subject: [solved]help an emacs newbie Reply with quote

Why does xemacs not support .cpp files? Turning on syntax highlighting does not do anything and ident also does not work. Do I have to install a module or something?

Last edited by Rapsey on Sun May 15, 2005 7:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Sun May 15, 2005 5:03 pm    Post subject: Reply with quote

xemacs should recognize the '.cpp' (as well as '.cc') extension and load cc-mode automatically, and that should be part of the standard package. Do you have:
/usr/lib/xemacs/xemacs-packages/lisp/cc-mode/<bunch of files ending in .el and .elc>
Alternatively, what happens if you type
M-x c++-mode
You should see (C++ Abbrev) in the mode line if the xemacs package is installed.
Back to top
View user's profile Send private message
Rapsey
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2004
Posts: 87

PostPosted: Sun May 15, 2005 6:26 pm    Post subject: Reply with quote

cc-mode, does not exist, only this directory in lisp:

bash-2.05b$ ls -l /usr/lib/xemacs/xemacs-packages/lisp/xemacs-base/
total 1812
-rw-r--r-- 1 root root 24179 May 15 12:05 ChangeLog
-rw-r--r-- 1 root root 81 May 15 12:05 _pkg.el
-rw-r--r-- 1 root root 38256 May 15 12:05 add-log.el
-rw-r--r-- 1 root root 20053 May 15 12:05 add-log.elc
-rw-r--r-- 1 root root 169483 May 15 12:05 advice.el
-rw-r--r-- 1 root root 45495 May 15 12:05 advice.elc
-rw-r--r-- 1 root root 17031 May 15 12:05 annotations.el
-rw-r--r-- 1 root root 12070 May 15 12:05 annotations.elc
-rw-r--r-- 1 root root 5168 May 15 12:05 assoc.el
-rw-r--r-- 1 root root 4231 May 15 12:05 assoc.elc
-rw-r--r-- 1 root root 74351 May 15 12:05 auto-autoloads.el
-rw-r--r-- 1 root root 72110 May 15 12:05 auto-autoloads.elc
-rw-r--r-- 1 root root 4821 May 15 12:05 case-table.el
-rw-r--r-- 1 root root 2858 May 15 12:05 case-table.elc
-rw-r--r-- 1 root root 6859 May 15 12:05 chistory.el
-rw-r--r-- 1 root root 5129 May 15 12:05 chistory.elc
-rw-r--r-- 1 root root 1518 May 15 12:05 comint-xemacs.el
-rw-r--r-- 1 root root 1008 May 15 12:05 comint-xemacs.elc
-rw-r--r-- 1 root root 121182 May 15 12:05 comint.el
-rw-r--r-- 1 root root 68003 May 15 12:05 comint.elc
-rw-r--r-- 1 root root 84705 May 15 12:05 compile.el
-rw-r--r-- 1 root root 45456 May 15 12:05 compile.elc
-rw-r--r-- 1 root root 1383 May 15 12:05 custom-load.el
-rw-r--r-- 1 root root 1505 May 15 12:05 custom-load.elc
-rw-r--r-- 1 root root 21432 May 15 12:05 debug.el
-rw-r--r-- 1 root root 12333 May 15 12:05 debug.elc
-rw-r--r-- 1 root root 9721 May 15 12:05 easy-mmode.el
-rw-r--r-- 1 root root 6241 May 15 12:05 easy-mmode.elc
-rw-r--r-- 1 root root 11420 May 15 12:05 ebuff-menu.el
-rw-r--r-- 1 root root 7784 May 15 12:05 ebuff-menu.elc
-rw-r--r-- 1 root root 6534 May 15 12:05 echistory.el
-rw-r--r-- 1 root root 4281 May 15 12:05 echistory.elc
-rw-r--r-- 1 root root 24522 May 15 12:05 edmacro.el
-rw-r--r-- 1 root root 14153 May 15 12:05 edmacro.elc
-rw-r--r-- 1 root root 15522 May 15 12:05 ehelp.el
-rw-r--r-- 1 root root 8965 May 15 12:05 ehelp.elc
-rw-r--r-- 1 root root 7746 May 15 12:05 electric.el
-rw-r--r-- 1 root root 3032 May 15 12:05 electric.elc
-rw-r--r-- 1 root root 18244 May 15 12:05 enriched.el
-rw-r--r-- 1 root root 10626 May 15 12:05 enriched.elc
-rw-r--r-- 1 root root 5789 May 15 12:05 env.el
-rw-r--r-- 1 root root 3287 May 15 12:05 env.elc
-rw-r--r-- 1 root root 31572 May 15 12:05 facemenu.el
-rw-r--r-- 1 root root 22130 May 15 12:05 facemenu.elc
-rw-r--r-- 1 root root 64204 May 15 12:05 ffap.el
-rw-r--r-- 1 root root 37612 May 15 12:05 ffap.elc
-rw-r--r-- 1 root root 5058 May 15 12:05 helper.el
-rw-r--r-- 1 root root 3249 May 15 12:05 helper.elc
-rw-r--r-- 1 root root 35593 May 15 12:05 imenu.el
-rw-r--r-- 1 root root 21843 May 15 12:05 imenu.elc
-rw-r--r-- 1 root root 1174 May 15 12:05 iso-syntax.el
-rw-r--r-- 1 root root 692 May 15 12:05 iso-syntax.elc
-rw-r--r-- 1 root root 8285 May 15 12:05 macros.el
-rw-r--r-- 1 root root 5778 May 15 12:05 macros.elc
-rw-r--r-- 1 root root 5647 May 15 12:05 novice.el
-rw-r--r-- 1 root root 2881 May 15 12:05 novice.elc
-rw-r--r-- 1 root root 23336 May 15 12:05 outline.el
-rw-r--r-- 1 root root 16007 May 15 12:05 outline.elc
-rw-r--r-- 1 root root 13156 May 15 12:05 passwd.el
-rw-r--r-- 1 root root 8545 May 15 12:05 passwd.elc
-rw-r--r-- 1 root root 6714 May 15 12:05 pp.el
-rw-r--r-- 1 root root 3421 May 15 12:05 pp.elc
-rw-r--r-- 1 root root 11379 May 15 12:05 regexp-opt.el
-rw-r--r-- 1 root root 4342 May 15 12:05 regexp-opt.elc
-rw-r--r-- 1 root root 8775 May 15 12:05 regi.el
-rw-r--r-- 1 root root 5825 May 15 12:05 regi.elc
-rw-r--r-- 1 root root 4465 May 15 12:05 ring.el
-rw-r--r-- 1 root root 2834 May 15 12:05 ring.elc
-rw-r--r-- 1 root root 44557 May 15 12:05 shell.el
-rw-r--r-- 1 root root 28543 May 15 12:05 shell.elc
-rw-r--r-- 1 root root 22588 May 15 12:05 skeleton.el
-rw-r--r-- 1 root root 15852 May 15 12:05 skeleton.elc
-rw-r--r-- 1 root root 22520 May 15 12:05 sort.el
-rw-r--r-- 1 root root 13507 May 15 12:05 sort.elc
-rw-r--r-- 1 root root 12572 May 15 12:05 thing.el
-rw-r--r-- 1 root root 6917 May 15 12:05 thing.elc
-rw-r--r-- 1 root root 18955 May 15 12:05 time-stamp.el
-rw-r--r-- 1 root root 11940 May 15 12:05 time-stamp.elc
-rw-r--r-- 1 root root 15080 May 15 12:05 timezone.el
-rw-r--r-- 1 root root 9537 May 15 12:05 timezone.elc
-rw-r--r-- 1 root root 4219 May 15 12:05 tq.el
-rw-r--r-- 1 root root 3022 May 15 12:05 tq.elc
-rw-r--r-- 1 root root 18935 May 15 12:05 xbm-button.el
-rw-r--r-- 1 root root 14676 May 15 12:05 xbm-button.elc
-rw-r--r-- 1 root root 21474 May 15 12:05 xpm-button.el
-rw-r--r-- 1 root root 15668 May 15 12:05 xpm-button.elc


M-x c++ -> it says: keyboard macro terminated by a comand ringing bell, or [no match]
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Sun May 15, 2005 7:01 pm    Post subject: Reply with quote

It's been too long.... It isn't part of the standard package:

emerge cc-mode
Back to top
View user's profile Send private message
Rapsey
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2004
Posts: 87

PostPosted: Sun May 15, 2005 7:10 pm    Post subject: Reply with quote

thanks dude
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum