From 941168f49008a9b74aa94b022b7c38ebbcb12dd3 Mon Sep 17 00:00:00 2001 From: cspark Date: Fri, 15 Mar 2024 16:31:35 +0000 Subject: [PATCH] Enable discord rich presence, Fix emacs not auto opening buffer when 1st argument is specifying a file to edit --- config.org | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index 63e8539..14e4fa5 100644 --- a/config.org +++ b/config.org @@ -220,7 +220,8 @@ Install the package, enable it and ensure that it always is installed: :config (dashboard-setup-startup-hook)) - (setq initial-buffer-choice (lambda () (get-buffer "*dashboard*"))) + ;; Fixes emacs not auto opening buffer when 1st argument is specifying a file to edit + (setq initial-buffer-choice (lambda () (or (get-buffer "*dashboard*") (get-buffer (nth 1 command-line-args))))) #+END_SRC **** Emacs Dashboard Configuration @@ -714,12 +715,12 @@ Install the package, enable it and ensure that it always is installed, and then Rich Presence in Emacs for discord, `https://github.com/Mstrodl/elcord` Install the package, enable it and ensure that it always is installed, and then enable the mode: -+BEGIN_SRC emacs-lisp +#+BEGIN_SRC emacs-lisp (use-package elcord :ensure t :init (elcord-mode 1)) -+END_SRC +#+END_SRC ** Nix Mode An Emacs major mode for editing Nix expressions. There is also a manual available at nix-mode.org.