Browse Source

line wrapping now respects indents

master
Marc Pohling 6 years ago
parent
commit
643a061ff8
1 changed files with 18 additions and 6 deletions
  1. 24
      config.org

24
config.org

@ -16,8 +16,6 @@
I want a pretty status bar! I want a pretty status bar!
- Company - Company
It's too active and autocompletes normal text (don't!). Also it completes on RET, which is annoying when I finish a sentence with RET and company "completes" it to a longer word It's too active and autocompletes normal text (don't!). Also it completes on RET, which is annoying when I finish a sentence with RET and company "completes" it to a longer word
- Line wrapping
Is there a way to wrap lines and keep the indent?
* Update config in a running config * Update config in a running config
Two options: Two options:
@ -136,14 +134,28 @@ Various stuff
#+begin_src emacs-lisp #+begin_src emacs-lisp
(show-paren-mode t) (show-paren-mode t)
(column-number-mode t) (column-number-mode t)
(global-visual-line-mode)
(diminish 'visual-line-mode)
(setq uniquify-buffer-name-style 'forward) (setq uniquify-buffer-name-style 'forward)
#+end_src #+end_src
* Prettier Line Wraps
By default there is no line wrapping. M-q actually modifies the buffer, which might not be wanted.
So: enable visual wrapping and keep indentation if there are any.
#+begin_src emacs-lisp
(global-visual-line-mode)
(diminish 'visual-line-mode)
(use-package adaptive-wrap
:ensure t
:init
(when (fboundp 'adaptive-wrap-prefix-mode)
(defun my-activate-adaptive-wrap-prefix-mode ()
"Toggle `visual-line-mode' and `adaptive-wrap-prefix-mode' simultaneously."
(adaptive-wrap-prefix-mode (if visual-line-mode 1 -1)))
(add-hook 'visual-line-mode-hook 'my-activate-adaptive-wrap-prefix-mode))
)
#+end_src
* List buffers * List buffers
Ibuffer is the improved version of list-buffers. Ibuffer is the improved version of list-buffers.
Make ibuffer the default buffer lister. [[http://ergoemacs.org/emacs/emacs_buffer_management.html][Source]] Make ibuffer the default buffer lister. [[http://ergoemacs.org/emacs/emacs_buffer_management.html][Source]]

Loading…
Cancel
Save