How to toggle evil mode in Emacs

-set-key (kbd "M-u") 'toggle-evilmode) I also set the cursor to bar in Emacs mode and box in evil ... will not go away. This breaks the Emacs undo mechanism, we need to disable it when toggle off the evil mode ... [The evil-emacs-state] When you are in evil mode, press ctrl + z to switch to evil ... -emacs-state, to go back to evil mode press ctrl + z again, the two functions bind to them: evil-emacs

Choose a dark theme for Emacs

When you need to work in a dark environment, choose a eye healthy theme if important if you want to be happy stay with Emacs.

It has a dark background, but not black. The text fore colors like white, green, red works very well with the background.

Easy Emacs distraction free mode

I first know the so called distraction free mode is when I'm using Sublime Text, Press Shift + F11, and you go into Full screen mode , and the text is centered, each line contains 80 characters, I found this is very helpful when I focus on writing, for example when writing a blog post.

Implementing Goto Anything in Emacs

Goto Anything is a great feature in editors like Sublime Text, it allows you goto anywhere you want with minimal key strokes. This is what I wanted in Emacs for switching buffers. Both the switch-to-buffer and switch-to-buffer are not good enough.

The Sublime Goto Anything support goto any line any symbol in any file with fuzzy matching. For Emacs, if I can fuzzy matching buffers and switch to the buffer I will be more productive.

The Sublime Goto Anything support goto any line any symbol in any file with fuzzy matching. For Emacs, if .

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

you lose your working environment, the power off, system crash, Emacs itself crash, etc ... You are working on a set of files in Emacs, and its late night, you are tired, want go ... restore last session on next startup. We want Emacs have the same feature. [Use desktop ... -save and desktop-read, save and restore session manually] The quickest way to do some basic

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

When you try to open a new REPL buffer in Emacs cider, and you already ... have one REPL opened, cider will ask you for confirmation, show something like this in Emacs ... waiting the task to be done. Lets disable the confirmation step. First locate the function where ... true, otherwise return false. To disable the confirmation we just let it always return true

How to switching buffer effectively in Emacs

-buffer and next-buffer in Emacs for efficient buffer switching. The second improvement is using ... iswitchb or newer icomplete] To be more efficient in Emacs buffer switching I decide to use iswitchb ... . [IDO and fuzzy matching] The last stop of my journey of Emacs buffer switching improvements ... and locate the buffer and then switch to it. This works for entry level Emacs using. It quickly

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 .

Previous Page 1 2 3 4 Next Page