Browse Source

minor tweaks

master
Marc Pohling 6 years ago
parent
commit
0d45ea8eac
1 changed files with 49 additions and 12 deletions
  1. 61
      config.org

61
config.org

@ -205,7 +205,7 @@
#+END_SRC
** Misc
UTF-8 please
UTF-8 please
#+BEGIN_SRC emacs-lisp
(setq locale-coding-system 'utf-8)
@ -215,7 +215,7 @@
(prefer-coding-system 'utf-8)
#+END_SRC
Turn off blinking cursor
Turn off blinking cursor
#+BEGIN_SRC emacs-lisp
(blink-cursor-mode -1)
@ -227,22 +227,28 @@
(setq uniquify-buffer-name-style 'forward)
#+END_SRC
Avoid tabs in place of multiple spaces (they look bad in TeX)
and show empty lines
Avoid tabs in place of multiple spaces (they look bad in TeX) and show empty lines
#+BEGIN_SRC emacs-lisp
(setq-default indent-tabs-mode nil)
(setq-default indicate-empty-lines t)
#+END_SRC
Smooth scrolling. Emacs tends to be jumpy, this should change it.
Smooth scrolling. Emacs tends to be jumpy, this should change it.
#+BEGIN_SRC emacs-lisp
(setq scroll-margin 5
scroll-conservatively 9999
scroll-conservatively 10000
scroll-preserve-screen-position 1
scroll-step 1)
#+END_SRC
Highlight current line
#+BEGIN_SRC emacs-lisp
(global-hl-line-mode t)
#+END_SRC
* Usability
** which-key
Greatly increases discovery of functions!
@ -308,12 +314,13 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
Evil-goggles give visual hints when editing texts, so it's more obvious what is actually happening. [[https://github.com/edkolev/evil-goggles][Source]]
#+BEGIN_SRC emacs-lisp
(use-package evil-goggles
:after evil
:ensure t
:config
(evil-goggles-mode)
(evil-goggles-use-diff-faces))
(use-package evil-goggles
:after evil
:ensure t
:diminish evil-goggles-mode
:config
(evil-goggles-mode)
(evil-goggles-use-diff-faces))
#+END_SRC
** General (keymapper)
I just use general.el to define keys and keymaps. With it I can set leader keys and create keymaps for them. It also integrates well with which-key.
@ -583,6 +590,28 @@ Smooth scrolling. Emacs tends to be jumpy, this should change it.
)
#+END_SRC
** misc
Newline at the end of file
#+BEGIN_SRC emacs-lisp
(setq require-final-newline t)
#+END_SRC
Delete the selection with a keypress
#+BEGIN_SRC emacs-lisp
(delete-selection-mode t)
#+END_SRC
Remember the current location in a file
#+BEGIN_SRC emacs-lisp
(use-package saveplace
:unless noninteractive
:config
(save-place-mode))
#+END_SRC
* Org Mode
** Installation
Although org mode ships with Emacs, the latest version can be installed externally. The configuration here follows the [[http://orgmode.org/elpa.html][Org mode ELPA Installation instructions.]]
@ -964,6 +993,14 @@ Highlight parens etc. for improved readability
)
#+END_SRC
Treat CamelCase combined words as individual words
#+BEGIN_SRC emacs-lisp
(use-package subword
:diminish subword-mode
:config
(add-hook 'python-mode-hook 'subword-mode))
#+END_SRC
** Smartparens
Smartparens is a beast on its own, so it's worth having a dedicated section for it
#+BEGIN_SRC emacs-lisp

Loading…
Cancel
Save