6

(setq visual-line-fringe-indicators '(left-curly-arrow right-curly-arrow))


5

Why mark-end-of-sentence? I'd do it like this: (defun vim-line-yank-func() (interactive) (save-excursion (beginning-of-visual-line) (copy-region-as-kill (point) (progn (end-of-visual-line) (point)))))


5

None of those hooks will apply because the buffer (and its mode) has already been created long before your add-hook happens. I suggest you add (with-current-buffer "*Messages*" (visual-line-mode)) to your ~/.emacs instead.


4

This same or similar question was previously asked on stackoverflow: https://stackoverflow.com/questions/24838516/how-to-set-paragraph-spacing-in-emacs Here is a regurgitation of my prior answer: The following code alters the visual display by adding an additional new visual line, but does not actually add new lines to the current document: (aset (or ...


3

I've had this in my init.el for a while: (defun highlight-visual-line () (save-excursion (cons (progn (beginning-of-visual-line) (point)) (progn (end-of-visual-line) (point))))) (setq hl-line-range-function 'highlight-visual-line) This is assuming you use (global-hl-line-mode 1) to achieve that highlighting. I probably posted this as an ...


2

Thanks to @DoMiNeLa10's advice. I tried to add a local hook for text-scale-mode, it does work. (defun my/text-scale-mode-hook () (eww-reload :local)) (add-hook 'eww-mode-hook (lambda() (add-hook 'text-scale-mode-hook 'my/text-scale-mode-hook nil :local)))


2

There is no built-in functionality to provide line numbers based on visual lines. First of all, compared to buffer lines (e.g. \n, \r\n), visual lines need to get recounted on every window width-change, which can bring Emacs down to its knees. Compared to normal buffer lines, visual lines are only second-class citizens in that regard. However, the old linum-...


2

I've FINALLY got solution for this, but there is not related with line numbers. All what I've done is just set another functions to j, k for evil. And it works almost perfect. God, I'm sooo happy now. There is solution for spacemacs https://github.com/syl20bnr/spacemacs/issues/9557#issuecomment-327976596


1

I have found a way after exploring all evil- functions: (evil-normal-state 1) My first idea was to use: (evil-visual-state -1) But it leaves the buffer in insert mode with no possibility to go back to normal mode. Edit: I have come to another way of doing it: ;; .spacemacs file (defun my/function (beg end) ;; To work with visual selection: ...


1

The doc string of whitespace-newline-mode (C-h f whitespace-newline-mode) 'includes: (whitespace-newline-mode &optional ARG) Toggle newline visualization (Whitespace Newline mode). With a prefix argument ARG, enable Whitespace Newline mode if ARG is positive, and disable it otherwise. If called from Lisp, also enables the mode if ARG is ...


1

This is commonly referred to as "code foldlng" or just "folding". There are several packages that implement this behavior, and each one displays folded and foldable code in their own way, which may not be graphical. Remember, Emacs has deep roots in text, and graphic bells are whistles are still "new". Your favorite search engine should help you out, but ...


1

If you are on the develop branch - check to see if an adaptive-wrap is installed by checking if the corresponding folder is actually in your ~/.emacs.d/elpa/26.2/develop directory (modulo versions). If it is missing, then install it by editing your .spacemacs file and adding it to the dotspacemacs-additional-packages in defun dotspacemacs/layers. Then, the ...


1

You want spacemacs/toggle-visual-line-navigation. In addition to turning on visual-line-mode, it rebinds j/k to evil-next/previous-visual-line.


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