From 1705ea8c49ba428d3f84679d6e0a456dab035393 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 9 May 2022 08:17:21 -0700 Subject: feat(wpcarro/emacs): Move PL support to separate module Declutter init.el. Change-Id: I0af874adaab4471741f9d344f539dd6164e2afff Reviewed-on: https://cl.tvl.fyi/c/depot/+/5561 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/emacs/.emacs.d/init.el | 8 +---- .../emacs/.emacs.d/wpc/wpc-language-support.el | 35 ++++++++++++++++++++++ users/wpcarro/emacs/default.nix | 1 + 3 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 users/wpcarro/emacs/.emacs.d/wpc/wpc-language-support.el (limited to 'users/wpcarro/emacs') diff --git a/users/wpcarro/emacs/.emacs.d/init.el b/users/wpcarro/emacs/.emacs.d/init.el index a87be333c73a..9554147fe766 100644 --- a/users/wpcarro/emacs/.emacs.d/init.el +++ b/users/wpcarro/emacs/.emacs.d/init.el @@ -13,10 +13,4 @@ (require 'wpc-org) (require 'wpc-company) (require 'wpc-shell) -(require 'wpc-lisp) -(require 'wpc-haskell) -(require 'wpc-elixir) -(require 'wpc-nix) -(require 'wpc-rust) -(require 'wpc-clojure) -(require 'wpc-prolog) +(require 'wpc-language-support) diff --git a/users/wpcarro/emacs/.emacs.d/wpc/wpc-language-support.el b/users/wpcarro/emacs/.emacs.d/wpc/wpc-language-support.el new file mode 100644 index 000000000000..4b784a717c94 --- /dev/null +++ b/users/wpcarro/emacs/.emacs.d/wpc/wpc-language-support.el @@ -0,0 +1,35 @@ +;;; wpc-language-support.el --- Support for miscellaneous programming languages -*- lexical-binding: t -*- + +;; Author: William Carroll +;; Version: 0.0.1 +;; Package-Requires: ((emacs "25.1")) + +;;; Commentary: +;; I defined this module to declutter my init.el. +;; +;; When a particular programming-language's configuration gets too complicated, +;; I break it out into a dedicated module. Everything else gets dumped in +;; "Miscellaneous Configuration". + +;;; Code: + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Dedicated Modules +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(require 'wpc-lisp) +(require 'wpc-haskell) +(require 'wpc-elixir) +(require 'wpc-nix) +(require 'wpc-rust) +(require 'wpc-clojure) +(require 'wpc-prolog) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Miscellaneous Configuration +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(use-package csharp-mode) + +(provide 'wpc-language-support) +;;; wpc-language-support.el ends here diff --git a/users/wpcarro/emacs/default.nix b/users/wpcarro/emacs/default.nix index d44564480030..a5ff76d9b8bc 100644 --- a/users/wpcarro/emacs/default.nix +++ b/users/wpcarro/emacs/default.nix @@ -44,6 +44,7 @@ let password-store # TODO(wpcarro): Prefer an Emacs client for clipmenud. clipmon + csharp-mode dockerfile-mode evil evil-collection -- cgit 1.4.1