How php mode in emacs indent line
I noticed the indent line feature of php-mode in Emacs works not right. I just want the basic indentation, but php-mode is using something different, run command describe-function and input indent-line-function I get php-cautious-indent-line. This is not what I want according its behavior.
The basic indent-relative is enough for me. To change it, we should first remove the php-mode hook in ielm buffer, run the following code
The basic indent-relative is enough for me. To change it, we should first remove the php-mode hook .How to save and restore working environment in Emacs
How to set Emacs as editor of Git in Windows
You have Emacs installed, the lastest version is Emacs 24.4. And Emacs instance run in server mode. Your Emacs will run as daemon, there will be only one Emacs window, you will open file with emacsclient.exe, the new buffer will be created in the daemon Emacs process.
Disable confirmation step when open a new REPL in Emacs cider
How to switching buffer effectively in Emacs
How to highlight text on selection in Emacs
This post shows how to highlight all occurrences of a word in an Emacs buffer on selection with msearch.el package.
When you do shift selection in Emacs, the text in region will be highlighted if Transient Mark mode is enabled. What we want is when you selection a piece of text, all the occurrences of the text in the buffer will be highlighted.
When you do shift selection in Emacs, the text in region will be highlighted if Transient Mark mode is enabled. What we want is when you selection a piece of text, all the occurrences of the text in the .How to connect to cider REPL directly
The cider Clojure REPL provide a command cider-connect to open a Clojure session in Emacs. By default this command will prompt you in the minibuffer for host name and then port number. But I found a little inconvenient since I always connect to localhost on port number 7888, I have to input them every time calling cider-connect.
Emacs error: Eager macro-expansion failure: (void-function loop)
I was trying to install this elisp script : msearch.el. I add it to my load-path and then add require to .emacs
Then I try to enable the minor mode M-x msearch-mode, Emacs say there is no such command. Whats wrong? Then I notice the Message buffer has an error message:
How to find out where global binding is defined in Emacs
For major mode binding we can easily find out the key binding in the mode's elisp file, but how to find where the global binding is defined?
For example the C-M-j is bound to indent-new-comment-line function. I tried grep the command in Emacs's lisp directory but find nothing
Which key bind to previous-buffer and next-buffer in Emacs for efficient buffer switching
In Emacs, switching buffer is important, most of the time you will have a dozens of files keep opened in Emacs. Navigate throght them effectively is a key to be efficient. The most important two command about buffer switching is previous-buffer and next-buffer.
The default binding is awful. At the start I bind it to C-o and C-p, but then it turns out these two key is hard reach for my finger very quickly. The best key position to navigate previous and next it the j and l , I already bind C-i and C-l to backward-char and forward-char.
The default binding is awful. At the start I bind it to C-o and C-p, but then .