3 Ways to Replace string in Emacs

Replace is a common editing task and in Emacs you have countless ways to do ... functions. [3. evil mode] If you like the VIM way to replace string, you can use the evil mode ... it for different kind of replace. This post introduce you three useful tips to replace strings. [1. query ... -replace] The first one is the query-replace. But I rarely use it because it not better than

Multiple Cursor editing in Emacs

? It will be tedious to replace them one by one. The multiple cursors allow you to set one cursor for each ... how to the same thing in Emacs. First install the multiple-cursors package: Open you ielm ... , in Sublime you select the word and press Alt + F3 and start editing. In Emacs you mark the variable ... There is one nice feature I first met in Sublime: multiple cursors. You have a variable name

Upgrade to Emacs 25 on Windows 64 bit

. And this is how easy to upgrade to a new Emacs version on Windows 64 bit system. ... My old Emacs 24 is a 32 bit binary distribution which running on a 64 bit Windows(WIN8 ... . So I decide its time to upgrade to its best state. I used to use Emacs 32 bit on Windows ... . The best place to get 64 bit Emacs for Windows is https://sourceforge.net/projects/emacsbinw64

How to change flyspell keybinding in Emacs

I use Ctrl - Alt - i to move the cursor to up window, actually I use ijkl to move cursor to different window in four directions.

When I enabled flyspell-mode, the Ctrl - Alt - i is overwritten. It was used to correct misspelled words, but I never use it.

How to split a hunk and stage part of a hunk in Magit

Maybe you accumulated too many unstaged changes, maybe there are man different changes gathered in a same hunk. No you get a hunk contains totally different code, you may not want to stage them as a whole. If you are in command line, you can use git add -p. But this feature is very limited, you just can not .

Emacs Evil mode regular expression search and replace

One of the things I miss about VIM in Emacs is :%s command, which allows you input pattern and replace text in one step. The Emacs M-x query-replace-regexp do the same thing but a bit annoying, you need to input regular expression first then press enter, input replace text and press enter again and you need to press ! .

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 .

Previous Page 1 2 3 4 Next Page