From 39652ffdcba1cc9ec7348ba13f2fdfe4de34bcf7 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 18 Feb 2020 17:10:02 +0100 Subject: [PATCH] Emacs: Lazy-load cc-mode, git-commit-mode, go-mode. --- init.d/programming/c++.el | 4 +++- init.d/programming/git.el | 3 ++- init.d/programming/misc.el | 7 +++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/init.d/programming/c++.el b/init.d/programming/c++.el index 066bda4..8b1a23a 100644 --- a/init.d/programming/c++.el +++ b/init.d/programming/c++.el @@ -1,6 +1,6 @@ ;;; c++.el --- C++ settings. -*- lexical-binding: t; -*- -;; Time-stamp: <2020-02-11T17:54:11+0100> +;; Time-stamp: <2020-02-18T17:04:30+0100> ;;; Commentary: @@ -57,6 +57,8 @@ ;; Set coding style. (use-package cc-mode + :commands (cc-mode) + :config (c-add-style ; Construct own coding style definition. "tastytea" diff --git a/init.d/programming/git.el b/init.d/programming/git.el index 00ac602..de99704 100644 --- a/init.d/programming/git.el +++ b/init.d/programming/git.el @@ -1,6 +1,6 @@ ;;; git.el --- magit and stuff. -*- lexical-binding: t; -*- -;; Time-stamp: <2020-01-27T05:28:52+0100> +;; Time-stamp: <2020-02-18T17:04:04+0100> ;;; Commentary: @@ -10,6 +10,7 @@ ;; Git integration. (use-package git-commit + :commands (git-commit-mode) :pin melpa ) diff --git a/init.d/programming/misc.el b/init.d/programming/misc.el index 69898f6..acb8e54 100644 --- a/init.d/programming/misc.el +++ b/init.d/programming/misc.el @@ -1,6 +1,6 @@ ;;; misc.el --- Miscellaneous programming languages. -*- lexical-binding: t; -*- -;; Time-stamp: <2019-11-14T11:49:23+00:00> +;; Time-stamp: <2020-02-18T17:06:25+0100> ;;; Commentary: ;; Programming languages I don't normally program in and only care about syntax @@ -8,7 +8,10 @@ ;;; Code: -(use-package go-mode) +(use-package go-mode + :mode + ("\\.go$" . go-mode) + ) (provide 'programming/misc) ;;; misc.el ends here