From e1aa1327f88aefcebeb44d53317b927f767bdfb9 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 21 Mar 2023 13:28:15 +0100 Subject: [PATCH] Minor tweaks --- doomemacs/.doom.d/config.el | 21 +++++++++++++++++++++ doomemacs/.doom.d/custom.el | 13 ++++++++++++- leftwm/.config/leftwm/config.ron | 1 + 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/doomemacs/.doom.d/config.el b/doomemacs/.doom.d/config.el index 1187d45..fbbe723 100644 --- a/doomemacs/.doom.d/config.el +++ b/doomemacs/.doom.d/config.el @@ -79,7 +79,28 @@ ;; (setq-default tab-width 4) ;; (setq-default indent-tabs-mode t) +;; Discord thing ;; (elcord-mode) +;; (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) ;; Find file +(global-set-key "\C-s" 'swiper) +(global-set-key (kbd "C-c C-r") 'ivy-resume) +(global-set-key (kbd "") 'ivy-resume) +(global-set-key (kbd "M-x") 'counsel-M-x) (global-set-key (kbd "M-f") 'counsel-find-file) +(global-set-key (kbd " f") 'counsel-describe-function) +(global-set-key (kbd " v") 'counsel-describe-variable) +(global-set-key (kbd " o") 'counsel-describe-symbol) +(global-set-key (kbd " l") 'counsel-find-library) +(global-set-key (kbd " i") 'counsel-info-lookup-symbol) +(global-set-key (kbd " u") 'counsel-unicode-char) +(global-set-key (kbd "C-c g") 'counsel-git) +(global-set-key (kbd "C-c j") 'counsel-git-grep) +(global-set-key (kbd "C-c k") 'counsel-ag) +(global-set-key (kbd "C-x l") 'counsel-locate) +(global-set-key (kbd "C-S-o") 'counsel-rhythmbox) +(define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history) + + +(global-set-key (kbd "M-g") 'format-all-buffer) diff --git a/doomemacs/.doom.d/custom.el b/doomemacs/.doom.d/custom.el index 92e2540..c65db52 100644 --- a/doomemacs/.doom.d/custom.el +++ b/doomemacs/.doom.d/custom.el @@ -3,10 +3,21 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(package-selected-packages '(cpputils-cmake eldoc-cmake quelpa elcord))) + '(elcord-display-buffer-details nil) + '(elcord-display-elapsed t) + '(elcord-display-line-numbers nil) + '(elcord-editor-icon "emacs_material_icon") + '(elcord-icon-base + "https://raw.githubusercontent.com/Mstrodl/elcord/master/icons/") + '(elcord-idle-message "Thinking...") + '(elcord-mode t nil (elcord)) + '(elcord-quiet t) + '(package-selected-packages '(elcord quelpa eldoc-cmake cpputils-cmake)) + '(warning-suppress-types '((initialization) (defvaralias)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) +(put 'customize-group 'disabled nil) diff --git a/leftwm/.config/leftwm/config.ron b/leftwm/.config/leftwm/config.ron index 356be92..e658b61 100644 --- a/leftwm/.config/leftwm/config.ron +++ b/leftwm/.config/leftwm/config.ron @@ -78,6 +78,7 @@ (command: SoftReload, value: "", modifier: ["modkey", "Shift"], key: "x"), // (command: Execute, value: "loginctl kill-session $XDG_SESSION_ID", modifier: ["modkey", "Shift"], key: "x"), (command: Execute, value: "betterlockscreen --lock", modifier: ["modkey", "Shift"], key: "l"), + (command: Execute, value: "emacs", modifier: ["modkey", "Shift"], key: "e"), (command: Execute, value: "flameshot gui", modifier: ["modkey"], key: "Print"), (command: MoveToLastWorkspace, value: "", modifier: ["modkey", "Shift"], key: "w"), (command: SwapTags, value: "", modifier: ["modkey"], key: "w"),