Emacs: Fixed errors introduced by use-package-always-defer → t.
This commit is contained in:
parent
8820025337
commit
d233acbf61
|
@ -1,6 +1,6 @@
|
|||
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-05-24T22:16:33+0200>
|
||||
;; Time-stamp: <2020-05-24T22:30:48+0200>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -15,6 +15,7 @@
|
|||
(require 'basics/global-variables)
|
||||
|
||||
(use-package emacs
|
||||
:demand t
|
||||
;; If 2 files have the same name, append directory name after the filename.
|
||||
:custom ((uniquify-after-kill-buffer-p t)
|
||||
(uniquify-buffer-name-style 'post-forward)
|
||||
|
@ -42,6 +43,7 @@
|
|||
|
||||
;; Icon font (required by doom and others).
|
||||
(use-package all-the-icons
|
||||
:demand t
|
||||
:init (defun my/font-installed-p (font-name)
|
||||
"Check if font with FONT-NAME is available."
|
||||
(if (find-font (font-spec :name font-name))
|
||||
|
@ -94,6 +96,7 @@
|
|||
|
||||
;; Show line numbers on the left side of the buffer.
|
||||
(use-package display-line-numbers
|
||||
:demand t
|
||||
:if (>= emacs-major-version 26)
|
||||
:config (progn (defun my/disable-line-numbers ()
|
||||
(display-line-numbers-mode -1))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; buffers.el --- Default settings for buffers. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-05-03T04:25:47+0200>
|
||||
;; Time-stamp: <2020-05-24T22:32:06+0200>
|
||||
|
||||
;;; Commentary:
|
||||
;; * Setup scratch buffer.
|
||||
|
@ -13,6 +13,7 @@
|
|||
(require 'basics/package-management)
|
||||
|
||||
(use-package emacs
|
||||
:demand t
|
||||
:custom ((initial-scratch-message nil) ; Make scratch buffer empty,
|
||||
(initial-major-mode 'gfm-mode)) ; and select mode.
|
||||
:config (progn
|
||||
|
@ -98,6 +99,7 @@
|
|||
|
||||
;; Visual feedback on some operations by highlighting region.
|
||||
(use-package volatile-highlights
|
||||
:demand t
|
||||
:diminish volatile-highlights-mode
|
||||
:after (doom-themes display-line-numbers)
|
||||
:config (progn
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; global-variables.el --- Set some global variables. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-05-17T17:28:16+0200>
|
||||
;; Time-stamp: <2020-05-24T22:32:42+0200>
|
||||
|
||||
;;; Commentary:
|
||||
;; * Banish customizations.
|
||||
|
@ -16,6 +16,7 @@
|
|||
(require 'basics/package-management)
|
||||
|
||||
(use-package emacs
|
||||
:demand t
|
||||
:diminish abbrev-mode
|
||||
:diminish auto-fill-function
|
||||
;; Banish customizations to another file.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; input.el --- Configure behaviour of input devices. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-05-17T19:43:47+0200>
|
||||
;; Time-stamp: <2020-05-24T22:56:24+0200>
|
||||
|
||||
;;; Commentary:
|
||||
;; * Setup mouse & keyboard behaviour.
|
||||
|
@ -77,6 +77,7 @@ With ARG, do it that many times."
|
|||
|
||||
;; Display available keybindings.
|
||||
(use-package which-key
|
||||
:defer 2
|
||||
:diminish which-key-mode
|
||||
:defines (which-key-mode)
|
||||
:config (which-key-mode))
|
||||
|
|
|
@ -69,10 +69,5 @@
|
|||
(straight-pull-package 'gnu-elpa-mirror)
|
||||
(straight-pull-package 'emacsmirror-mirror))
|
||||
|
||||
;; ;; Autocompile files on load.
|
||||
;; (use-package auto-compile
|
||||
;; :custom (load-prefer-newer t) ; Use uncompiled file if it is newer.
|
||||
;; :config (auto-compile-on-load-mode))
|
||||
|
||||
(provide 'basics/package-management)
|
||||
;;; package-management.el ends here
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-04-22T03:16:48+0200>
|
||||
;; Time-stamp: <2020-05-24T22:38:01+0200>
|
||||
|
||||
;;; Commentary:
|
||||
;; * treemacs
|
||||
|
@ -58,7 +58,6 @@
|
|||
;; Extensions for ivy
|
||||
(use-package counsel
|
||||
:after (ivy)
|
||||
:demand t
|
||||
:bind (("C-x C-f" . counsel-find-file)
|
||||
("M-x" . counsel-M-x)))
|
||||
|
||||
|
@ -106,6 +105,7 @@
|
|||
;; Shows tabs of all visible buffers per window.
|
||||
(when (>= emacs-major-version 27)
|
||||
(use-package tab-line
|
||||
:defer 4
|
||||
:custom-face
|
||||
(tab-line ((t (:inherit ruler-mode-default))))
|
||||
(tab-line-tab ((t (:inherit ruler-mode-default))))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; documentation.el --- Tools to look up documentation -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-03-27T21:34:29+0100>
|
||||
;; Time-stamp: <2020-05-24T22:38:35+0200>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -10,7 +10,6 @@
|
|||
|
||||
;; Manual pages.
|
||||
(use-package man
|
||||
:defer t
|
||||
:custom (Man-width fill-column)
|
||||
:custom-face
|
||||
(Man-overstrike ((t (:inherit font-lock-type-face :bold t))))
|
||||
|
@ -33,7 +32,6 @@
|
|||
|
||||
;; Read RFC documents.
|
||||
(use-package rfc-mode
|
||||
:defer t
|
||||
:commands (rfc-mode-browse)
|
||||
:config (when (or (string= (system-name) "ventiloplattform")
|
||||
(string= (system-name) "sprotznog"))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; email.el --- Email setup -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-03-31T16:26:01+0200>
|
||||
;; Time-stamp: <2020-05-24T22:38:58+0200>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -57,6 +57,7 @@
|
|||
:bind ("C-X m" . mu4e)))
|
||||
|
||||
(use-package smtpmail
|
||||
:defer 4
|
||||
:custom ((message-send-mail-function #'smtpmail-send-it)
|
||||
(mu4e-sent-messages-behavior 'sent)
|
||||
(smtpmail-smtp-server "mail.tzend.de")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; c++.el --- C++ settings. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-05-09T17:42:59+0200>
|
||||
;; Time-stamp: <2020-05-24T22:41:27+0200>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -54,6 +54,7 @@
|
|||
|
||||
;; Set coding style.
|
||||
(use-package cc-mode
|
||||
:defer 2
|
||||
:commands (cc-mode)
|
||||
|
||||
:config
|
||||
|
@ -123,6 +124,7 @@
|
|||
)
|
||||
|
||||
(use-package find-file
|
||||
:defer 2
|
||||
:custom
|
||||
(cc-search-directories '("." ; Set directories for ff-find-other-file.
|
||||
"../src"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-05-24T22:16:49+0200>
|
||||
;; Time-stamp: <2020-05-24T22:58:35+0200>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -10,6 +10,8 @@
|
|||
(require 'basics/global-variables)
|
||||
|
||||
(use-package emacs
|
||||
:demand t
|
||||
:after (compile)
|
||||
:defines (compilation-mode-map)
|
||||
:custom (compilation-scroll-output 'first-error)
|
||||
:config (progn
|
||||
|
@ -91,6 +93,7 @@
|
|||
;; Automatic project management.
|
||||
(unless slow-computer
|
||||
(use-package projectile
|
||||
:demand t
|
||||
:after (treemacs ivy window-purpose)
|
||||
:functions (f-directory?
|
||||
treemacs-collapse-other-projects
|
||||
|
@ -164,6 +167,7 @@ collapse other projects."
|
|||
|
||||
;; Needs to be here in order to diminish it.
|
||||
(use-package hideshow
|
||||
:defer 4
|
||||
:diminish hs-minor-mode)
|
||||
|
||||
;; Fold code.
|
||||
|
@ -199,6 +203,7 @@ collapse other projects."
|
|||
|
||||
;; Support .editorconfig files.
|
||||
(use-package editorconfig
|
||||
:defer 2
|
||||
:diminish editorconfig-mode
|
||||
:config (editorconfig-mode 1))
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; lsp.el --- Language Server Protocol. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-03-27T17:03:12+0100>
|
||||
;; Time-stamp: <2020-05-24T22:49:17+0200>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -52,12 +52,14 @@
|
|||
|
||||
;; Completions with lsp-mode.
|
||||
(use-package company-lsp
|
||||
:demand t
|
||||
:after (lsp-mode company)
|
||||
:custom (company-lsp-cache-candidates 'auto)
|
||||
:config (push 'company-lsp company-backends))
|
||||
|
||||
;; ivy interface to lsp-mode.
|
||||
(use-package lsp-ivy
|
||||
:demand t
|
||||
:after (lsp-mode ivy))
|
||||
|
||||
;; Integration between lsp-mode and treemacs.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-05-18T16:08:49+0200>
|
||||
;; Time-stamp: <2020-05-24T22:51:00+0200>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
|||
(require 'basics/global-variables)
|
||||
|
||||
(use-package emacs
|
||||
:demand t
|
||||
:custom ((require-final-newline t) ; Always add newline at end of file.
|
||||
(fill-column 80) ; Documents are 80 chars wide by default.
|
||||
(word-wrap t)) ; Wrap at word for continuation lines.
|
||||
|
@ -42,6 +43,7 @@
|
|||
|
||||
;; Save cursor position.
|
||||
(use-package saveplace
|
||||
:demand t
|
||||
:config (save-place-mode t))
|
||||
|
||||
;; Ruler with fill-column marker.
|
||||
|
@ -148,6 +150,7 @@
|
|||
|
||||
;; Install snippet-collection but don't use it.
|
||||
(use-package yasnippet-snippets
|
||||
:demand t
|
||||
:after (yasnippet)
|
||||
;; Don't add the snippets.
|
||||
:config (delete 'yasnippet-snippets-dir yas-snippet-dirs))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; misc.el --- Miscellaneous file formats. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-05-20T06:04:17+0000>
|
||||
;; Time-stamp: <2020-05-24T22:52:15+0200>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -26,8 +26,7 @@
|
|||
("^'/etc/crontab$" . crontab-mode))
|
||||
:hook (crontab-mode . (lambda () (auto-fill-mode -1)))) ; No word-wrapping.
|
||||
|
||||
(use-package nginx-mode
|
||||
:defer t) ; Why defer?
|
||||
(use-package nginx-mode)
|
||||
|
||||
(use-package company-nginx
|
||||
:after (nginx-mode company)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; web.el --- Settings for web stuff. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-03-27T21:22:50+0100>
|
||||
;; Time-stamp: <2020-05-24T22:54:55+0200>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
|||
|
||||
;; Use company auto-completion for (X)HTML.
|
||||
(use-package company-web
|
||||
:demand t
|
||||
:after (company)
|
||||
:config (add-to-list 'company-backends 'company-web-html))
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
127.0.0.1:51313 6149
|
||||
127.0.0.1:51313 12952
|
||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue