Emacs Shift-Tab to left shift the block
I could not get emacs to shift-tab to move the selected text to the left side by -4 space any clue will be appreciated. PS. I am learner and sorry for too many questions on emacs. ...
I could not get emacs to shift-tab to move the selected text to the left side by -4 space any clue will be appreciated. PS. I am learner and sorry for too many questions on emacs. ...
Hi Is there a way to covert such block of lines line1 line2 linen into 1. line1 2. line2 n. linen Using Emacs org mode ...
Let me explain what I mean by "two-dimensional code editor": imagine of using Inkscape or Gimp in a big canvas (say infinite). The "T - add text" tool is used to write the code. Additionally, all function definitions will be framed and links will connect the called functions. In other words: you have a very large sheet of (virtual) pap...
I am using the auto-completion elisp for emacs. I am currently using it by pressing M-TAB but I would like it to also auto-complete after 4 characters. I use yasnippet as a source for auto-complete so if I set it to auto-complete after 4 characters it won't show completions like if, for, inc, main. If I set it to start auto-completion ...
hello I am trying to implement function which moves to the next blank/whitespace character. I have read manual, and it seems I can use skip-syntax functions. However, I cannot figure out how to use them correctly. Here is what I have: (skip-syntax-forward " ") However, this does not seem to work. If I use "^ " it works, but if point ...
hello Is it possible to use emacs bindings in bash shell with numeric arguments, for example in emacs C-u 5 C-d deletes five characters. Is there an equivalent way of doing the same in bash prompt? Thanks ...
I'm trying to use rdebug with emacs and cygwin and I'm running into trouble. Whenever I do a M-x rdebug and give it the appropriate script to run, it stops with the error "apply: Spawning child process: exec format error" From some googling, it seems like this could happen if I'm trying to launch a cygwin executable via the windows ...
Hi, I have been a programmer for a decade now, but I believe this is the first time I've ever asked a question on a forum. I just can't figure this out and can't find the answer already online. I am trying to turn on CUA mode so that emacs is more bearable for a windows user (normal copy paste functions). I am running Windows 7 and i...
I run emacs on windows. I use cygwin and I have cygwin versions of ruby and rdebug installed as well. When I invoke M-x comint-run ENTER rdebug ENTER, I noticed that it is attempting to run rdebug.bat via the Microsoft Command prompt, instead of using bash to run rdebug (without the .bat). I'd like comint-run to use bash to invoke any pr...
I'm trying to get a compile command (rake cucumber) to run with a specific ruby version on my Mac OS X system, I use rvm to do this currently in the terminal. My ~/.MacOSX/environment.plist has the correct path in it, but emacs insists on prepending to this path and therefore making it useless. I've also tried: (when (equal system-type...
Hi, I have an alias in bash that runs emacsclient if emacs daemon is already running and start emacs otherwise. However, in the event that a fresh instance of emacs is fired up, can I make it run in the background so I can still use that terminal (or close it)? In my bash profile, I have alias ec="/usr/bin/emacsclient.emacs-snapshot -n ...
How can I load changes from .emacs without rebooting Emacs? ...
I'm trying to tweak the dired-find-file function in emacs on Windows XP so that when I open (say) a pdf file from dired it fires up a copy of Acrobat Reader and opens that file with it, instead of opening it within emacs. But I can't work out what variant on shell-command/call-process to use. Here's what I have so far: (defadvice dired-...
How to disable Emacs from checking the buffer file was changed outside the editor? ...
Turning which-function-mode on in Emacs displays the function name in the status bar of the current function where the cursor is at. However, when there're nested functions or method inside class, only the outer most function is displayed. For example, I have the following class in C++. class Foo { void func1() { ... }...
I would like to start a few shells, and set their directories from my .emacs. Opening them is easy: ;; run a few shells. (shell "*shell5*") (shell "*shell6*") (shell "*shell7*") But I would like to specify their directory, too. ...
For reading programming (and other) documentation, the Emacs INFO mode is outstanding. So outstanding that I would like to be able to read say, the Emacs Lisp info file and the org-mode info files simultaneously without traversing back up to the beginning of the info tree. Either I've missed something obvious or I will need to hack som...
In Emacs how can I easily copy all lines matching a particular regex? Preferably highlighting the matching lines as I type. occur gets partway there by coping them into a buffer, but it adds lots of extra stuff. ...
Hi, all I want to make my muse directory more flexible, so I save the muse base directory path in a variable, like this: (setq my-muse-base-dir "d:/project/notes") (setq muse-project-alist `( ("Home" ((concat my-muse-base-dir "/muse/home") ;; ("d:/project/notes/muse/home" :default "index") (:base "html"...
hi I am looking for code beautifier for UNIX/emacs. I have looked at gnu indent, artistic style, however I need something a bit different. For example, I would like the following: for( int x= 0;; ++ x) if(x) break; to be formatted as for (int x = 0; ; ++x) if (x) break;. As far as I can tell artistic style does not do that (correc...