emacs

How do I open files over FTP with Emacs 22.2.1 on Windows?

AngeFtp? EFS? Is there a better option? Is the preferred option built-in? If so, how do I turn it on? If not, where do I download it? I tried with AngeFtp, just by doing find-file using a filespec like /name@server:/directory and it prompts me for a password, then does the login to the FTP server and gets the contents - it takes ...

Any emacs add-in for visual studio?

I know about the included emacs keybindings, it's barely ok. I want to know if there exists a more thorough emacs add-in for visual studio similar to viemu for vi. I found VisEmacs but it seems unfinished. ...

How to display autocomplete choices in emacs?

I'm working on autocompletion implementation in emacs for haxe programming language. I already figured out how to obtain list of autocompletions which I wants to present. The list is in format: '((name1 type1 desc1) (name2 type2 desc2) ... I want to display to user list containing text in format "name1 type1" after cursor position ...

Are there any emacs key combinations reserved for custom commands?

If I want to create a custom key combination to run a command, are there any keyboard shortcuts reserved for this? I always find it difficult to decide on which shortcut to override because I'm not sure what commands I shouldn't override and which commands plugins I may install in the future will try to set. ...

How do I prevent emacs from horizontally splitting the screen when opening multiple files?

Hi, I want to be able to open multiple files with emacs like so: emacs file1 file2 and have the emacs screen -not- be split horizontally when emacs starts up. Opening the files in different buffers is what i expect, with just one of the files displayed in the entire emacs window. So how do I do this? ...

Emacs, xterm, mousepad, C, Unicode and UTF-8: Trying to make sense of it all

Disclaimer: My apologies for all the text below (for a single simple question), but I sincerely think that every bit of information is relevant to the question. I'd be happy to learn otherwise. I can only hope that, if successful, the question(s) and the answers may help others in Unicode madness. Here goes. I have read all the usually ...

Turning off chunk coloring in Emac's nXhtml mode

(load "~/.elisp/nxhtml/autostart.el") (setq mumamo-chunk-coloring 'no-chunks-colored) I currently have the above in my .emacs and the chunk coloring is still showing up. I have also tried disabling it through customize-option and then setting the state to "no chunk coloring" in mumamo-chunk-coloring. I'm using the latest emacs23 from...

How do I Pass a Function as a Parameter in Emacs?

I'm trying to add a function I created to a hook, but the obvious (to my Schemer mind) way doesn't seem to work. The function is used in 2 places and I want to keep my code DRY so no anonymous function. Though I could wrap my function in a lambda, there must be a better way. Doesn't work: (defun my-function () ;; do my stuff) (add-...

Emacs Psychotherapist: Where can I find the code?

Hi I'd like to port the Emacs Psychotherapist to C :) but I would like to know where I can find the source code. What I am afraid of is that it is written in Lisp. If it is I think I will be out of luck porting it to C unless someone has already done it. Any pointers would be appreciated (pun not intended!) ...

How do I do cross-project refactorings with ropemacs?

I have a file structure that looks something like this: project1_root/ tests/ ... src/ .ropeproject/ project1/ ... (project1 source code) project2_root/ tests/ ... src/ .ropeproject/ project2/ ... (project2 source) I'm frequently switching back an...

How to gracefully shutdown emacs daemon?

On login to Ubuntu, I start an Emacs (version 23) daemon using Ubuntu's Startup programs. I then start Emacs clients whenever I need to edit something. When I logoff from Ubuntu, it says Emacs is still running, of course. I need to attach a script somewhere to tell Gnome to shutdown emacs when I logoff/shutdown. 1) What should the scri...

In emacs, how to strip CR (^M) and leave LF (^J) characters?

I am trying to use hexl mode to manually remove some special chars from a text file and don't see how to delete anything in hexl mode. What I really want is to remove carriage return and keep linefeed characters. Is Hexl mode the right way to do this? ...

How to Make Emacs Display Chinese Characters

I often use simple Chinese phrases like "你好" to test that my code can handle non-ascii characters. Whenever I enter Chinese characters directly into Emacs, they just come out as question marks. Emacs can sometimes display characters properly if I open a premade text file but not always. For example, if I create a simple text file in No...

How I can run 'cpan' inside emacs?

I like to know how I can run cpan to install modules using emacs? I often do that on command line now. Update: I had asked this because I get the message "warning: extra args ignored after '-e'" when I use M-x shell to run it. I still need help. ...

emacs style keyboard macros in visual studio

Hi, I'd like to use emacs style keyboard macros in Visual Studio, which for the most part I can do through these shortcut mappings... but I can't figure out a keyboard shortcut to repeat the next command x times. In emacs, I could record my macro, then type Esc, #, ctrl+x, e where # is the number of times I want to repeat my macro....

How to make Emacs always open .c files in the left windows while .h in the right?

I always open three windows when writing C code like this: | | 2 1 |_____ | | 3 | Window 1 is used for code writing, window 2 is used for cscope, and window 3 is used for header file quick reference. When I press in cscope window to show source, I want Emacs to display .c files always in wi...

Lisp: CHAR is neither declared nor bound

I have decided to learn (Common) Lisp a few days ago and I realize that this is quite a newbie question and it is probably extremely trivial to someone with at least a bit of experience. So basically what happens is that I load up Emacs + Slime (via Lisp in a Box) and write my program (included below): (defun last-char (s) "Get last ch...

Executing current Python script in Emacs on Windows

I've just started learning Emacs, and decided to start writing Python in it. I tried using C-c C-c to execute the current buffer, but I get the message Searching for program: no such file or directory, python. I've looked on google, but I'm none the wiser as to how to sort this out (bear in mind I know next to nothing about Emacs!) ...

Are there any solutions available which integrate emacs and TFS?

Googling emacs and tfs the first few results seemed violent. I'm wondering has anyone had any luck using emacs in an environment where tfs was used? Are there any packages readily available which will allow me to use emacs with tfs without doing a heavy amount of customization on my part? If it's of any consequence my operating system is...

Emacs: Don't create #these# files when not saving modified buffer

How do I prevent Emacs from creating backup copies of buffers I don't wish to save when I kill buffers that have not been saved? ...