6

Spacemacs uses evil-mode which is a VI emulation layer. Evil-mode adds VI modal editing to spacemacs. In a nutshell modal editing has different modes where keybindings do different things. This is partly so that keybindings can remain short and easy to remember. In essence, the answer to your question is that you enter the space character by switching to ...


3

[:ascii:] char class can help. C-M-% to query replace regexp \(\ *\)\([[:ascii:]]*[a-zA-z]\) with \1\\lr{\2} If new line character must not be included into sentence then change regexp to replace to \(\ *\)\([a-zA-z ]*[a-zA-z]\)


2

Different views of 3 as octal, hex and a char.


2

Put your cursor over the character ‘ on the line (setq confirm-kill-emacs ‘yes-or-no-p) and press C-x =. Char: ‘ (8216, #o20030, #x2018, file ...) point=698 of 698 (100%) column=0 That's the left quotation mark (with C-u C-x = you can see its Unicode name: LEFT SINGLE QUOTATION MARK). This character has no special meaning to Emacs. You need to use the ...


1

There are a few ways you can test whether a character is in a string. Here are two: (seq-contains "abcd" char) (memq char (string-to-list "abcd")) ; Which is just (memq char (append "abcd" nil)) (seq-contains is similar to what you did with seq-some.)


1

The following should work: M-x query-replace-regexp RET \([0-9]+\) RET \,(string (+ (1- ?a) \#1)) RET


1

This behaviour is controlled by the eval-expression-print-maximum-character variable. eval-expression-print-maximum-character is a variable defined in `simple.el'. Its value is 2305843009213693951 Original value was 127 Probably introduced at or before Emacs version 26.1. Documentation: The largest integer that will be displayed as a character. This ...


1

Your main confusion lies in that ^L isn't a two-characters regexp, it's an ASCII control character (page-break/ FORM FEED), that's why it appears in red in your system. on #3, if you iterate over the blanks and using M-x describe-char you'll notice that it should match either space or tab. Reasons are described in the documentation string: Regexp for ...


1

C-h v register-separator says this: register-separator is a variable defined in register.el. Its value is nil Documentation: Register containing the text to put between collected texts, or nil if none. When collecting text with C-M-S-delete (or M-x prepend-to-register), contents of this register is added to the beginning (or end, ...


Only top voted, non community-wiki answers of a minimum length are eligible