Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can someone tell me
1. does GNUEmacs see diference between different programming languages or it has just some built in keywords
2. Can I change syntax highlihting of buffer which isn't saved or has another .extension (for example change to c++ highlight in file which is already open and has .sql extension or has no extension at all)
3. if GNUEmacs has font locking for different languages How can I add new font locking scheme(for example if I want font locking for .prg files(foxpro/clipper))
As I understood I can add new keywords to GNUEmacs I will look through that in documentation.
Thanks, looked through your link, 1. and 2. points are clear
To solve third people should use M-x load-library and then load some lisp library foo.el, or even easier just set (load "foo.el") in emacs initialization file
Problem is just that I can't find any library for foxpro or clipper font locking(syntax highlighting), so it would be cool, if someone would throw some link!
Thanks for xbase, it is better than nothing! But works quite laggy on clipper files. But, OK, from what I checked out it's not at all hard to write my own *.el file, so I might just do it!
One another thing, a bit off topic, BUT I always use C-w to kill or M-w to copy region, is there some way to DELETE region(so it's not held in buffer)
(For example if I copy some text from another buffer or even another application I come back to emacs and if buffer is already filled with some information I have to kill it and then Control-yank and Meta-yank -> basically, I have to use three commands instead of two, first of which would delete region and second would yank previously copied region)
You should be able to use M-x delete-region, if I understand what you want (see, e.g. this). I just tried it myself and it doesn't store the text in the kill ring. Weird, though, as this command isn't in the manual :/.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.