Skip to content

Instantly share code, notes, and snippets.

@alcidesfp
Created March 29, 2016 17:11
Show Gist options
  • Save alcidesfp/45a4c5b612fd3761de7428b6c24df00b to your computer and use it in GitHub Desktop.
Save alcidesfp/45a4c5b612fd3761de7428b6c24df00b to your computer and use it in GitHub Desktop.
UI Tweaks for Emacs 24
;;; UI Tweaks
;; nice scrolling
(setq scroll-margin 0
scroll-conservatively 1000
scroll-preserve-screen-position t)
;; enable y/n answers
(fset 'yes-or-no-p 'y-or-n-p)
;; more useful frame title, that show either a file or a
;; buffer name (if the buffer isn't visiting a file)
(setq frame-title-format
'((:eval (if (buffer-file-name)
(abbreviate-file-name (buffer-file-name))
"%b"))))
;; show the cursor when moving after big movements in the window
(require 'beacon)
(beacon-mode +1)
;; show available keybindings after you start typing
(require 'which-key)
(which-key-mode +1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment