Просмотр исходного кода

~/.emacs.d: Update vendored better-defaults

Lucas Stadler лет назад: 10
Родитель
Сommit
615d6dd043
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      .emacs.d/better-defaults.el

+ 9 - 1
.emacs.d/better-defaults.el

1
;;; better-defaults.el --- Fixing weird quirks and poor defaults
1
;;; better-defaults.el --- Fixing weird quirks and poor defaults
2
2
3
;; Copyright © 2013 Phil Hagelberg
3
;; Copyright © 2013 Phil Hagelberg and contributors
4
4
5
;; Author: Phil Hagelberg
5
;; Author: Phil Hagelberg
6
;; URL: https://github.com/technomancy/better-defaults
6
;; URL: https://github.com/technomancy/better-defaults
52
  (when (fboundp 'scroll-bar-mode)
52
  (when (fboundp 'scroll-bar-mode)
53
    (scroll-bar-mode -1))
53
    (scroll-bar-mode -1))
54
54
55
  (autoload 'zap-up-to-char "misc"
56
    "Kill up to, but not including ARGth occurrence of CHAR." t)
57
55
  (require 'uniquify)
58
  (require 'uniquify)
56
  (setq uniquify-buffer-name-style 'forward)
59
  (setq uniquify-buffer-name-style 'forward)
57
60
60
63
61
  (global-set-key (kbd "M-/") 'hippie-expand)
64
  (global-set-key (kbd "M-/") 'hippie-expand)
62
  (global-set-key (kbd "C-x C-b") 'ibuffer)
65
  (global-set-key (kbd "C-x C-b") 'ibuffer)
66
  (global-set-key (kbd "M-z") 'zap-up-to-char)
63
67
64
  (global-set-key (kbd "C-s") 'isearch-forward-regexp)
68
  (global-set-key (kbd "C-s") 'isearch-forward-regexp)
65
  (global-set-key (kbd "C-r") 'isearch-backward-regexp)
69
  (global-set-key (kbd "C-r") 'isearch-backward-regexp)
73
        save-interprogram-paste-before-kill t
77
        save-interprogram-paste-before-kill t
74
        apropos-do-all t
78
        apropos-do-all t
75
        mouse-yank-at-point t
79
        mouse-yank-at-point t
80
        require-final-newline t
81
        visible-bell t
82
        load-prefer-newer t
83
        ediff-window-setup-function 'ediff-setup-windows-plain
76
        save-place-file (concat user-emacs-directory "places")
84
        save-place-file (concat user-emacs-directory "places")
77
        backup-directory-alist `(("." . ,(concat user-emacs-directory
85
        backup-directory-alist `(("." . ,(concat user-emacs-directory
78
                                                 "backups")))))
86
                                                 "backups")))))