minor conveniences

This commit is contained in:
Abraham Raji 2020-01-08 22:32:50 +05:30
parent e91ec498a8
commit 70249d5c38

View file

@ -671,41 +671,54 @@ This is a habit of mine. Whenever a find some good material on a paricular topic
(find-file "~/.config/i3/config"))
(global-set-key (kbd "C-c i") '4br/visit-i3config)
#+END_SRC
* Short Settings
* Minor Conveniences
- First, lets increase the cache before starting garbage collection:
#+BEGIN_SRC elisp
(setq gc-cons-threshold 50000000)
#+END_SRC
- Set custom settings to load in own file
This stops emacs adding customised settings to init.el. I try to avoid using
customize anyway, preferring programmatic control of variables. Creating it as
a temporary file effectively disables it (i.e. any changes are session local).
#+BEGIN_SRC emacs-lisp
(setq custom-file (make-temp-file "emacs-custom"))
#+END_SRC
#+END_SRC
- Inhibit Startup Message
#+BEGIN_SRC emacs-lisp
(setq inhibit-startup-message t)
#+END_SRC
- Found [[https://github.com/wasamasa/dotemacs/blob/master/init.org#init][here]] how to remove the warnings from the GnuTLS library when using HTTPS
increase the minimum prime bits size:
#+BEGIN_SRC elisp
(setq gnutls-min-prime-bits 4096)
#+END_SRC
- Disables Toolbar
#+BEGIN_SRC emacs-lisp
(tool-bar-mode -1)
#+END_SRC
- Numbers on lines
#+BEGIN_SRC emacs-lisp
(setq linum-mode t)
#+END_SRC
- Text wrapping
#+BEGIN_SRC emacs-lisp
(setq visual-line-mode t)
#+END_SRC
- Use y/n instead of yes/no
#+BEGIN_SRC emacs-lisp
(fset 'yes-or-no-p 'y-or-n-p)
(fset 'yes-or-no-p 'y-or-n-p)
#+END_SRC
- make home and end buttons do their job
#+BEGIN_SRC emacs-lisp
(global-set-key (kbd "<home>") 'move-begining-of-line)
(global-set-key (kbd "<end>") 'move-end-of-line)
#+END_SRC
- don't require two spaces for sentence end.
#+BEGIN_SRC emacs-lisp
(setq sentence-end-double-space nil)
#+END_SRC
- The beeping can be annoying--turn it off
#+BEGIN_SRC emacs-lisp
(setq visible-bell t
ring-bell-function 'ignore)
#+END_SRC
- don't require two spaces for sentence end.
#+BEGIN_SRC emacs-lisp
(setq sentence-end-double-space nil)
#+END_SRC
- The beeping can be annoying--turn it off
#+BEGIN_SRC emacs-lisp
(setq visible-bell t
ring-bell-function 'ignore)
#+END_SRC
- Start in fullscreen
#+BEGIN_SRC emacs-lisp
;(toggle-frame-fullscreen)
@ -715,9 +728,9 @@ This is a habit of mine. Whenever a find some good material on a paricular topic
(global-set-key (kbd "C-x w") 'kill-current-buffer)
#+END_SRC
- Setting keybinding for eshell
#+BEGIN_SRC emacs-lisp
(global-set-key (kbd "C-c s") 'eshell)
#+END_SRC
#+BEGIN_SRC emacs-lisp
(global-set-key (kbd "<M-return>") 'eshell)
#+END_SRC
* Parentheses
- When programming I like my editor to try to help me with keeping parentheses balanced.
#+BEGIN_SRC emacs-lisp