General cleanup
This commit is contained in:
parent
ef9b59197a
commit
82fa5d977a
11 changed files with 60 additions and 55 deletions
|
@ -262,9 +262,9 @@
|
|||
;; behave more like vim (or how I like it).
|
||||
|
||||
;; Line-wise mouse selection on margin
|
||||
(global-set-key (kbd "<left-margin> <down-mouse-1>") 'doom/mouse-drag-line)
|
||||
(global-set-key (kbd "<left-margin> <mouse-1>") 'doom/mouse-select-line)
|
||||
(global-set-key (kbd "<left-margin> <drag-mouse-1>") 'doom/mouse-select-line)
|
||||
(map! "<left-margin> <down-mouse-1>" 'doom/mouse-drag-line
|
||||
"<left-margin> <mouse-1>" 'doom/mouse-select-line
|
||||
"<left-margin> <drag-mouse-1>" 'doom/mouse-select-line)
|
||||
|
||||
;; Restores "dumb" indentation to the tab key. This rustles a lot of peoples'
|
||||
;; jimmies, apparently, but it's how I like it.
|
||||
|
@ -283,7 +283,7 @@
|
|||
:i [remap backward-delete-char-untabify] 'doom/deflate-space-maybe
|
||||
:i [remap newline] 'doom/newline-and-indent
|
||||
;; Smarter move-to-beginning-of-line
|
||||
:i [remap move-beginning-of-line] 'doom/move-to-bol
|
||||
:i [remap move-beginning-of-line] 'doom/move-to-bol
|
||||
;; Restore bash-esque keymaps in insert mode; C-w and C-a already exist
|
||||
:i "C-e" 'doom/move-to-eol
|
||||
:i "C-u" 'doom/backward-kill-to-bol-and-indent
|
||||
|
|
|
@ -159,7 +159,9 @@
|
|||
(markdown-mode prog-mode scss-mode web-mode conf-mode)
|
||||
'nlinum-mode)
|
||||
(add-hook! 'nlinum-mode-hook
|
||||
(add-hook 'post-command-hook 'doom|nlinum-hl-line nil t))
|
||||
(if nlinum-mode-hook
|
||||
(add-hook 'post-command-hook 'doom|nlinum-hl-line nil t)
|
||||
(remove-hook 'post-command-hook 'doom|nlinum-hl-line t)))
|
||||
:config
|
||||
;; Calculate line number column width
|
||||
(add-hook! nlinum-mode
|
||||
|
|
66
core/core.el
66
core/core.el
|
@ -13,7 +13,6 @@
|
|||
;;
|
||||
;;; Autoloaded functions are in {core,modules}/defuns/defuns-*.el
|
||||
|
||||
;; Paths
|
||||
(defalias '! 'eval-when-compile)
|
||||
|
||||
(defconst doom-emacs-dir (! (expand-file-name user-emacs-directory)))
|
||||
|
@ -28,6 +27,37 @@
|
|||
emacs-major-version emacs-minor-version))
|
||||
"Hostname and emacs-version-based elisp temp directories")
|
||||
|
||||
|
||||
;;
|
||||
;; Load path
|
||||
;;
|
||||
|
||||
(defvar doom--load-path load-path
|
||||
"Initial `load-path'; so we don't clobber it on consecutive reloads.")
|
||||
|
||||
;; Populate the load-path manually; cask shouldn't be an internal dependency
|
||||
(setq load-path
|
||||
(! (defsubst --subdirs (path &optional include-self)
|
||||
(let ((result (if include-self (list path) (list))))
|
||||
(mapc (lambda (file)
|
||||
(when (file-directory-p file)
|
||||
(push file result)))
|
||||
(ignore-errors (directory-files path t "^[^.]" t)))
|
||||
result))
|
||||
(append (list doom-private-dir)
|
||||
(--subdirs doom-core-dir t)
|
||||
(--subdirs doom-modules-dir t)
|
||||
(--subdirs doom-packages-dir)
|
||||
(--subdirs (expand-file-name "../bootstrap" doom-packages-dir))
|
||||
doom--load-path))
|
||||
custom-theme-load-path
|
||||
(! (append (list (expand-file-name "themes/" doom-private-dir))
|
||||
custom-theme-load-path)))
|
||||
|
||||
;;
|
||||
;; Core configuration
|
||||
;;
|
||||
|
||||
;; UTF-8 please
|
||||
(set-charset-priority 'unicode)
|
||||
(setq locale-coding-system 'utf-8) ; pretty
|
||||
|
@ -39,7 +69,7 @@
|
|||
|
||||
;; Premature optimization for faster startup
|
||||
(setq-default gc-cons-threshold 4388608
|
||||
gc-cons-percentage 0.4
|
||||
gc-cons-percentage 0.3
|
||||
major-mode 'text-mode)
|
||||
|
||||
;; stop package.el from being annoying. I rely solely on Cask.
|
||||
|
@ -85,41 +115,13 @@
|
|||
|
||||
|
||||
;;
|
||||
;; Load path
|
||||
;;
|
||||
|
||||
(defvar doom--load-path load-path
|
||||
"Initial `load-path'; so we don't clobber it on consecutive reloads.")
|
||||
|
||||
;; Populate the load-path manually; cask shouldn't be an internal dependency
|
||||
(setq load-path
|
||||
(! (defsubst --subdirs (path &optional include-self)
|
||||
(let ((result (if include-self (list path) (list))))
|
||||
(mapc (lambda (file)
|
||||
(when (file-directory-p file)
|
||||
(push file result)))
|
||||
(ignore-errors (directory-files path t "^[^.]" t)))
|
||||
result))
|
||||
(append (list doom-private-dir)
|
||||
(--subdirs doom-core-dir t)
|
||||
(--subdirs doom-modules-dir t)
|
||||
(--subdirs doom-packages-dir)
|
||||
(--subdirs (expand-file-name "../bootstrap" doom-packages-dir))
|
||||
doom--load-path))
|
||||
custom-theme-load-path
|
||||
(! (append (list (expand-file-name "themes/" doom-private-dir))
|
||||
custom-theme-load-path)))
|
||||
|
||||
|
||||
;;
|
||||
;; Libraries
|
||||
;; Bootstrap
|
||||
;;
|
||||
|
||||
(autoload 'use-package "use-package" "" nil 'macro)
|
||||
(require 'f)
|
||||
(require 'dash)
|
||||
(require 's)
|
||||
|
||||
(autoload 'use-package "use-package" "" nil 'macro)
|
||||
(require 'core-vars)
|
||||
(require 'core-defuns)
|
||||
(unless (require 'autoloads nil t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue