Often, when I switch branches in git, if the files are open in emacs, then emacs asks if I want to revert them (as it thinks they've changed on disk) even though the contents are identical.
Firstly I'd like to find a way for emacs to not ask me about it at all if the contents on disk are identical to those in the buffer.
Secondly I'd l...
I recently switched to emacs for my code editing, and it mostly works well.
However, for Objective-C I find myself missing Xcode's autocomplete feature as I have trouble remembering the long function names such as
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType d...
Hi,
I recently switched to Emacs and still finding my way through it.
I code in C++ and was wondering what tools out there extend Emacs to support code browsing (finding a symbol etc), refactoring and code completion.
I have heard of:
cedet
etags
cscope
But I'm so confused about what I need. Some places say that cedet provides all o...
I am not looking for an IDE suggestion for C++ development. I have found many discussions on that and tried EMACS, GVIM and Code::Blocks. I liked Code::Blocks very much than the other two. But it looks like most of the developer community is using tools like EMACS or GVIM. Is there a reason for this? Why Code::Blocks is less used?
I fou...
I'm interested mostly in C++ and method/class name/signature automatic changes.
...
Hi -
I am an emacs user (on linux laptop) looking to make better use of my keyboard settings. The windows key is unused on my keyboard... is there any way to map it to m-x? This might make many emacs commands faster.
Thanks,
SetJmp
...
Hi,
Every once in a while I want to replace all instances of values like:
<BarFoo>
with
<barfoo>
i.e. do a regular expression replace of all things inside angle brackets with its lowercase equivalent.
Anyone got a nice snippet of Lisp that does this? It's safe to assume that we're dealing with just ASCII values. Bonus points for ...
I'm looking for a way to turn off automatic indentation in emacs. I don't want emacs to automatically indent code when I enter special characters like ; or /*
Thanks for any help.
...
Is there a way to build up an email message from a region or buffer, set up a recipient and then send a message in elisp code?
I've configured emacs to send mail via my gmail account and I'd like to be able to send myself emails from elisp programs. The command used is message-mail.
...
I'm using emacs in a console window both on my local Linux box and on the login node of a remote cluster. I use emacs regularly, and I've got the foreground color set to white in my .emacs file like so:
(set-foreground-color "white")
(set-background-color "black")
However, when I run emacs, the foreground isn't white; it's grey and v...
How can I set a key binding that globally overrides and takes precedence over all other bindings for that key? I want to override all major/minor mode maps and make sure my binding is always in effect.
This of course doesn't work:
(global-set-key "\C-i" 'some-function)
It works in text-mode, but when I use lisp-mode, C-i is rebound ...
Say you write some code like this (using ruby-mode, but I've seen this happen in other modes too):
# This is a comment.
def foo
puts "foo!"
end
If you put the point on the first line and hit M-q, you get this:
# This is a comment. def foo puts "foo!" end
How do I avoid that? I'm using version 21.3.
Clarification: This does not...
When I run emacs -nw in an X terminal window, and I ask for M-x list-colors-display, I am offered a paltry palette:
black
red
green
yellow
blue
magenta
cyan
white
I am told it is possible to get 265 colors. Setting the TERM environment variable to xterm-256color does n...
When working in an actual development environment with other people, is Emacs still a valid IDE? I work with Eclipse with my co-workers, but I'm curious if there are any benefits whatsoever of using Emacs over Eclipse.
...
I use full blown graphical IDEs such as Eclipse CDT (Linux) and Visual Studio (Windows) which have features like auto completion, built in debugging, etc. These are features that I feel I can't live without.
I keep hearing about how many people use emacs/vim on a daily basis. How come people still use console based editors when graphica...
When I export to PDF via org-mode (C-c C-e d), any words with underscores end up being partially converted to subscript. How can I prevent this from happening?
I found this article on the subject:
Disabling Underscore subscript in Emacs Tex Mode
However, I either wasn't able to figure out the correct elisp or it simply didn't work. No...
There are a bunch of applications out there that integrate Emacs with external processes. GDB is one that comes to mind. I can control GDB from emacs and then get feedback on the screen.
I'd like to do something in that direction with my application.
Here's what I want:
establish a connection between me and emacs. I'd probably start ...
I use Ubuntu8.10 and emacs-snapshot. Running shell-mode on emacs and input "ls" shows escape codes:
How can I get the output I expect?
...
I like Emacs to highlight tab characters using the trailing-whitespace face, which I set to be a slightly grayer version of my background color. That way, all whitespace that I consider unwanted (tab characters and trailing whitespace) will have a slightly gray background.
This is the code I use:
(add-hook 'font-lock-mode-hook
'(lamb...
Can you please tell me how can I setup cscope with aquamacs on MacOS?
I have followed a link from Google saying how to build a cscope database for my source code. But how can I invoke cscope with aquamacs?
Thank you.
...