From 44a504dc3c8e6171dc066b2c19b7769525388896 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 17 Nov 2016 12:50:00 +0100 Subject: emacs: split init.el into different files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The init.el was about to surpass the 1000 LoC threshold, and it was no longer easy to structure the code. Thus, I've moved the different pieces into new files. Signed-off-by: Miquel Sabaté Solà --- emacs/settings/init-misc.el | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 emacs/settings/init-misc.el (limited to 'emacs/settings/init-misc.el') diff --git a/emacs/settings/init-misc.el b/emacs/settings/init-misc.el new file mode 100644 index 0000000..1a2a64f --- /dev/null +++ b/emacs/settings/init-misc.el @@ -0,0 +1,34 @@ +;;; init-misc.el --- Miscellaneous packages + +;; Copyright (C) 2016 Miquel Sabaté Solà +;; +;; This program is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. +;; +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;;; Commentary: +;; +;; Set of packages for improving the editing experience. + +;;; Code: + +(require 'use-package) + +;; Install a set of useful functions from @bbatsov. The bindings are following +;; Emacs style instead of being more Vim-like on purpose (I don't want to put +;; too many things into my leader and these shortcuts look sensible to me). +(use-package crux + :ensure t + :bind (("C-c d" . crux-delete-file-and-buffer) + ("C-c r" . crux-rename-file-and-buffer) + ("C-c i" . crux-find-user-init-file) + ("C-c o" . crux-open-with))) + +(provide 'init-misc) +;;; init-misc.el ends here -- cgit v1.2.3