Enable discord rich presence, Fix emacs not auto opening buffer when 1st argument is specifying a file to edit

This commit is contained in:
Curt Spark 2024-03-15 16:31:35 +00:00
parent 5652263bef
commit 941168f490
1 changed files with 4 additions and 3 deletions

View File

@ -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.