Skip to main content
22 votes

replace splash screen with list of recentf

There's also a package on MELPA for this now: dashboard: https://github.com/rakanalh/emacs-dashboard. The package allows you to have a splash screen as in the image below: Here's the use-package ...
tirocinium's user avatar
17 votes
Accepted

How can I improve startup time despite many packages?

One of the design choices in package.el was to try and make things "simple". Part of this is that package-initialize searches for all the packages that are installed, then tries to figure out which ...
Stefan's user avatar
  • 26.5k
15 votes
Accepted

How to disable lisp-interaction when starting Emacs?

You can customize the value of initial-major-mode, which defaults to lisp-interaction-mode. Here's the variable's docstring: initial-major-mode is a variable defined in startup.el. Its value is ...
Dan's user avatar
  • 33.2k
14 votes

Speed up Emacs start-up time

Whatever your .emacs and its improvements, you also should consider running emacs as a server at your session's opening : emacs --daemon Now, running emacs with emacsclient -t or emacsclient -...
david's user avatar
  • 273
10 votes
Accepted

Replace welcome screen (aka "splash" screen) with calendar?

You can customize option initial-buffer-choice (using M-x customize-option). The value can be a buffer name (the name of your calendar buffer, if it exists - e.g. "*Calendar*") or a function that ...
Drew's user avatar
  • 78.1k
10 votes
Accepted

How to prevent Emacs from creating two windows on startup Windows 10?

Instead of using the emacs command, use the runemacs command (which is provided in the Emacs distribution, in the same bin directory as emacs.exe. emacs is a command-line program that can run Emacs ...
Sue D. Nymme's user avatar
  • 1,456
8 votes

Speed up Emacs start-up time

1) I have found esup to be a very convenient for Emacs startup profiling. You just run M-x esup and get back list of all expressions in your init.el sorted by the time they took to execute. You don't ...
Zaript's user avatar
  • 81
7 votes
Accepted

How to re-load a package?

You can unload the system prolog mode first, this unbinds all its variables, so that the new defvar init-forms will take effect: (require 'prolog) (when (version< prolog-mode-version "1.25") (...
npostavs's user avatar
  • 9,223
7 votes
Accepted

Emacs Mac OSX after upgrade to 26.2 launches only in `-nw` mode

You want to use the Homebrew cask for Emacs. That will install a "brewed" package of Emacs from https://emacsformacosx.com/. brew cask install emacs The "regular" Homebrew package for Emacs is built ...
nega's user avatar
  • 3,276
6 votes
Accepted

Loading addition org files along with default scratch buffer

Place two lines at the bottom of your .emacs file using find-file and adjust the path to the file locations. If you want them loaded in the background only, then use find-file-noselect instead of ...
lawlist's user avatar
  • 19.2k
6 votes
Accepted

Handle stale desktop lock files after emacs/system crash

You can check if the process is still alive using system command ps -p $PID, then delete the lock file if the process is not still alive. The following modification of init2.el above shows how this ...
Håkon Hægland's user avatar
6 votes

Handle stale desktop lock files after emacs/system crash

Building on the accepted answer, this two line solution loads for me without a locked prompt. (setq desktop-load-locked-desktop t) (call-interactively 'desktop-read t (vector "~/.emacs.d/desktops/" ...
בנימן הגלילי's user avatar
6 votes
Accepted

How can the start up log of Spacemac be viewed?

You should be able to see it in *Messages* buffer. You can use SPC w p m (Spacemacs specific) or C-x 4 b to visit that buffer in another window (or C-x b to visit it in the same window). (When ...
Enze Chi's user avatar
  • 1,470
6 votes

How can I improve startup time despite many packages?

The problem you describe about package-initialize taking so much time to load is a well known problem. It is also one of the problems that some emacs frameworks try to solve by loading the autoloads ...
UndeadKernel's user avatar
6 votes

Speed up Emacs start-up time

Side note, it is generally considered a good idea to have your startup code in ~/.emacs.d/init.el rather than ~/.emacs, one less hiden file in your home directory, a suffix so that other editors can ...
icarus's user avatar
  • 1,934
6 votes
Accepted

how to show latest xkcd in dashboard on startup?

xkcd-mode uses ~/.emacs.d/xkcd/ to cache the images, xkcd-cache-dir. So, you just need to set dashboard image variable, dashboard-banner-official-png, as the last cached image, xkcd-latest, and ...
adl's user avatar
  • 646
6 votes
Accepted

Is there an efficient way to tell which parts of my startup of Emacs take the longest to load?

This does it: (setq use-package-verbose t use-package-minimum-reported-time 0) We get in *Messages*: Loading package x...done (0.021s) Configuring package x...done (0.020s) Loading package y......
scribe's user avatar
  • 1,045
5 votes
Accepted

Restore welcome screen buffer when closed

M-: (fancy-about-screen), or call (fancy-about-screen) from your Lisp code. It shows this: This is GNU Emacs, one component of the GNU operating system. GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-...
Drew's user avatar
  • 78.1k
5 votes
Accepted

Current directory of Emacs in batch mode

You can use command-line-default-directory, it is intended when using Emacs in batch mode, or when processing command line options: Default directory to use for command line arguments. This is ...
Lindydancer's user avatar
  • 6,180
5 votes
Accepted

Emacs desktop-save-mode - only save desktop when previous desktop was fully restored

There's a hook you can use: desktop-after-read-hook. Add a function to set a variable after the desktop state is restored. Using defadvice around desktop-save, check if the variable is set before ...
Faried Nawaz's user avatar
5 votes

Removing tool bar oddly slow

A slightly less general but simpler version of what tool-bar-mode does: (push '(tool-bar-lines . 0) default-frame-alist) The same can be done with menu-bar-mode and the menu-bar-lines frame ...
Basil's user avatar
  • 12.5k
5 votes
Accepted

Set an Elisp var on the command line and read it in the init file

This doesn't work because command line options are processed after the init file. This allows the command line to refer to functions and variables defined or loaded in the init file, and allows the ...
xuchunyang's user avatar
  • 14.6k
5 votes
Accepted

How to open multiple files without automatically activating the "Buffer List" split?

The user option which determines whether a Buffer Menu is displayed is inhibit-startup-buffer-menu: inhibit-startup-buffer-menu is a variable defined in ‘startup.el’. Its value is nil Documentation: ...
Basil's user avatar
  • 12.5k
5 votes
Accepted

require vs. package-initialize?

You should be able to use require, yes, but only after running package-initialize (in Emacs≥27, this is done for you before the beginning of the .emacs file). Note that for 99% of the packages ...
Stefan's user avatar
  • 26.5k
5 votes

Why doesn't set-background-color work in my init file?

set-background-color does work in your init file! It's just that the setting is overridden later in Emacs's startup process, which goes (in part) something like this: load site init files load user ...
Sue D. Nymme's user avatar
  • 1,456
5 votes
Accepted

Persist variables (and maybe input history) across restarts

Is there ... some inbuilt way to achieve this? Yes -- if you enable savehist-mode in your init file, then any variable you add to savehist-additional-variables will automatically be saved and ...
phils's user avatar
  • 51.8k
4 votes
Accepted

Changing the file association of todoo or alternatively completely disable it

You can do this to remove the entry. (setq auto-mode-alist (rassq-delete-all 'todoo-mode auto-mode-alist)) I'm not sure there's a specialized way to remove entry of auto-mode-alist.
Xah Lee's user avatar
  • 1,766
4 votes

Restore welcome screen buffer when closed

The accepted answer displays the fancy about screen, but I'm just going to add that if anybody wants the actual startup screen then do M-: (fancy-startup-screen)
robert's user avatar
  • 154
4 votes
Accepted

How to lazy load init files to speedup Emacs startup?

Consider using John Wiegley's use-package if you really care about startup time that much. use-package provides built-in support for lazy/deferred loading. Better yet, don't constantly restart your ...
Tianxiang Xiong's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible