Emacs: Require package-management.el in init files.

This commit is contained in:
tastytea 2020-03-18 15:00:17 +01:00
parent b34f41c6bd
commit 18085e21de
20 changed files with 51 additions and 21 deletions

View File

@ -1,6 +1,6 @@
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-10T14:32:14+0100>
;; Time-stamp: <2020-03-18T14:51:46+0100>
;;; Commentary:
@ -11,6 +11,7 @@
;;; Code:
(require 'basics/package-management)
(require 'basics/global-variables)
(use-package emacs

View File

@ -1,6 +1,6 @@
;;; buffers.el --- Default settings for buffers. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-15T14:28:55+0100>
;; Time-stamp: <2020-03-18T14:54:44+0100>
;;; Commentary:
;; * Setup scratch buffer.
@ -10,6 +10,8 @@
;;; Code:
(require 'basics/package-management)
(use-package emacs
:custom ((initial-scratch-message nil) ; Make scratch buffer empty,
(initial-major-mode 'gfm-mode)) ; and select mode.
@ -67,7 +69,6 @@
;; Dedicate windows to “purposes”.
(use-package window-purpose
;; :pin melpa ; We need > 1.7 <https://github.com/bmag/emacs-purpose/issues/158>
:defer nil
:config (progn
(purpose-mode)
(add-to-list 'purpose-user-mode-purposes '(c++-mode . cpp))

View File

@ -1,11 +1,13 @@
;;; early-packages.el --- Packages that need to be loaded early -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-13T11:24:17+0100>
;; Time-stamp: <2020-03-18T14:51:22+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
;; Hide minor-mode from modeline.
(use-package diminish)

View File

@ -1,6 +1,6 @@
;;; global-variables.el --- Set some global variables. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-15T14:28:25+0100>
;; Time-stamp: <2020-03-18T14:55:03+0100>
;;; Commentary:
;; * Banish customizations.
@ -13,6 +13,8 @@
;;; Code:
(require 'basics/package-management)
(use-package emacs
:diminish abbrev-mode
:diminish auto-fill-function

View File

@ -1,6 +1,6 @@
;;; input.el --- Configure behaviour of input devices. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-15T14:28:13+0100>
;; Time-stamp: <2020-03-18T14:56:00+0100>
;;; Commentary:
;; * Setup mouse & keyboard behaviour.
@ -8,6 +8,8 @@
;;; Code:
(require 'basics/package-management)
(use-package emacs
:custom ((mouse-wheel-scroll-amount '(1 ((shift) . 1))) ; Scroll 1 line.
;; Paste text where the cursor is, not where the mouse is.

View File

@ -1,6 +1,6 @@
;;; package-management.el --- Initialize package management -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-18T13:56:25+0100>
;; Time-stamp: <2020-03-18T14:51:33+0100>
;;; Commentary:
;; * Set up straight

View File

@ -1,6 +1,6 @@
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-15T15:21:36+0100>
;; Time-stamp: <2020-03-18T14:56:35+0100>
;;; Commentary:
;; * treemacs
@ -9,6 +9,9 @@
;;; Code:
;; Directory tree.
(require 'basics/package-management)
(use-package treemacs
;; :pin melpa ; We need > 2.6 for lsp-treemacs.
:demand t

View File

@ -1,11 +1,13 @@
;;; client.el --- Network clients. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-02-18T16:50:57+0100>
;; Time-stamp: <2020-03-18T14:57:07+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
;; Explore and test HTTP REST webservices.
(use-package restclient
:mode

View File

@ -1,11 +1,12 @@
;;; server.el --- Set up network stuff.. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-15T16:40:58+0100>
;; Time-stamp: <2020-03-18T14:56:59+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
(require 'basics/global-variables)
;; Edit remote files.

View File

@ -1,11 +1,12 @@
;;; c++.el --- C++ settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-15T14:29:24+0100>
;; Time-stamp: <2020-03-18T14:58:32+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
(require 'basics/global-variables)
(require 'programming/common)

View File

@ -1,11 +1,12 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-15T14:29:38+0100>
;; Time-stamp: <2020-03-18T14:58:25+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
(require 'basics/global-variables)
(use-package emacs

View File

@ -1,11 +1,13 @@
;;; elisp.el --- Packages and settings for elisp. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-12T17:17:38+0100>
;; Time-stamp: <2020-03-18T14:57:56+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
;; Checker for the metadata in Emacs Lisp files.
(use-package flycheck-package
:after (flycheck)

View File

@ -1,11 +1,12 @@
;;; git.el --- magit and stuff. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-02-26T18:06:19+0100>
;; Time-stamp: <2020-03-18T14:57:49+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
(require 'basics/global-variables)
;; Git integration.

View File

@ -1,11 +1,12 @@
;;; lsp.el --- Language Server Protocol. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-10T12:58:15+0100>
;; Time-stamp: <2020-03-18T14:57:43+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
(require 'basics/global-variables)
(require 'programming/common)

View File

@ -1,12 +1,14 @@
;;; misc.el --- Miscellaneous programming languages. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-02-23T22:02:31+0100>
;; Time-stamp: <2020-03-18T14:57:26+0100>
;;; Commentary:
;; Programming languages that don't warrant a dedicated file.
;;; Code:
(require 'basics/package-management)
(use-package go-mode
:mode ("\\.go$" . go-mode)
)

View File

@ -1,11 +1,12 @@
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-15T23:37:37+0100>
;; Time-stamp: <2020-03-18T14:59:17+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
(require 'basics/global-variables)
(use-package emacs

View File

@ -1,11 +1,13 @@
;;; latex.el --- Settings for LaTeX. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-15T14:27:07+0100>
;; Time-stamp: <2020-03-18T14:59:09+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
(use-package tex-site
:straight auctex
:if (executable-find "xetex")

View File

@ -1,11 +1,12 @@
;;; misc.el --- Miscellaneous file formats. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-03-16T00:20:00+0100>
;; Time-stamp: <2020-03-18T14:59:05+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
(require 'text/common)
(use-package conf-mode

View File

@ -1,11 +1,13 @@
;;; tools.el --- Configure text tools. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-02-29T08:47:49+0100>
;; Time-stamp: <2020-03-18T14:58:57+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
;; Manual pages.
(use-package man
:defer t

View File

@ -1,11 +1,13 @@
;;; web.el --- Settings for web stuff. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-02-05T19:35:38+0100>
;; Time-stamp: <2020-03-18T14:58:52+0100>
;;; Commentary:
;;; Code:
(require 'basics/package-management)
;; Use company auto-completion for (X)HTML.
(use-package company-web
:after (company)