From 4cfa8246ea7eec4139ba6c34d3fb3a4545956824 Mon Sep 17 00:00:00 2001 From: benj Date: Sat, 25 Nov 2023 10:02:42 -0800 Subject: rewrite emacs init.el and go back to basics This is a complete rewrite leveraging the very popular use-package to see how I like it. We reduce init.el to a bare minimum configuration and remove the previous homebrew organizational scheme. A number of packages have yet to be setup, but we'll wait and do in JIT. --- utils/bindKeys.el | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 utils/bindKeys.el (limited to 'utils/bindKeys.el') diff --git a/utils/bindKeys.el b/utils/bindKeys.el deleted file mode 100644 index c07c393..0000000 --- a/utils/bindKeys.el +++ /dev/null @@ -1,25 +0,0 @@ -;;; bindKeys.el --- bind key sequence to a key map -*- lexical-binding: t; -*- - -;; Author: Benj Bellon -;; Keywords: lisp - -;;; Commentary: - -;; Bind key seqeuence to a keymap - -;;; Code: -(require 'dash) - -(defun bindKeys (triggerSeq bindings) - "Bind keys to a trigger sequence. -TRIGGERSEQ is a sequence of key(s) to trigger the binding. -BINDINGS is an alist of bindings." - (let ((trigger (concat (-reduce (lambda (acc cur) (concat acc cur)) triggerSeq) " "))) - (mapcar (lambda (binding) - (global-set-key - (kbd (concat (concat "C-c " trigger) (car binding))) - (cdr binding))) - bindings))) - -(provide 'bindKeys) -;;; bindKeys.el ends here -- cgit v1.2.3