I know how to disable the welcome / splash / startup screen in Emacs. How can this screen be (re)displayed at a later time?
C-h C-a shows the "About GNU Emacs" screen, which is not the same as the "GNU Emacs" (welcome) screen.
Welcome screen:
About screen:
Short version: use (display-splash-screen).
More pedantically, try using apropos to noodle around to find the relevant function: M-x apropos RET splash will give you a shortish list of functions and variables relating to the splash screen -- it won't take too much trial and error to find the right items.
Related
I have emacs 27.2 and when I open a buffer, I want to have browser style tabs.
I do M-x tab-bar-mode, and it says "tab bar mode enabled."
But then there is no tabs at the top of the buffer. And I try to do C-x t 2 to add a new tab, and nothing happens.
What am I doing wrong? I tried following youtube videos and I feel frustrated, because I am typing the exact same things and getting different results.
Edit: I just tried tab-line-mode and now I see a tab-line. Is that more what I'm supposed to use instead of tab-bar?
If you were on macos then emacs will not show the tab-bar on gui. It's not fully supported yet.
I'd like to ask how to move cider repl in DOOM, from horizontal (screenshot below) to vertical? been trying many menus shortcut but still horizontal.
Thanks you so much
enter image description here
As was already mentioned, in DOOM this REPL window is transformed into a popup, and you can customize it in your .doom.d/config.el:
(after! cider
(set-popup-rules!
'(("^\\*cider-repl"
:side right
:width 100
:quit nil
:ttl nil))))
The easiest thing to achieve this is by splitting the windows vertically before jacking into Cider. I.e., in your source code file, hit C-x 3 which calls split-window-right.
Of course, you could write a small Elisp function to call this before jacking into Cider (you might want a defadvice), but you would have to check your current window layout first, so I never bothered to do this.
Doom uses a pop-up for the REPL window, so the simplest way would be to disable popups. Otherwise, you can maximize the popup (Ctrl ~), and split the window vertically...
Running under ubuntu, emacs has a text description of buttons in the toolbar, even have something like
|(separator)
which is really annoying.
Look at the variable tool-bar-style. You can do this with C-h v. You can then either click the "customize" button at the bottom of the help buffer, or you can just evaluate
(setq tool-bar-style 'image)
With (menu-bar-mode 0) in my .emacs-file, Emacs (in a terminal) seems to be starting with the menu bar visible, and then within a fraction of a second, the bar disappears.
Is there a way to make Emacs not show the menu bar at all?
No: Emacs first starts by setting up its "frame" (which includes some initial display), then reads the .emacs file. That's why you see this flashing of the menu-bar. Emacs could read the .emacs first, but if the .emacs outputs any message or signals an error, there'd only be stderr to display it, whereas with the current setup, those messages are displayed in the minibuffer and the error can be caught in the "normal" way.
If you're runinng Linux (and I guess any system where Emacs runs in an X server), you can use X resources to tell Emacs you don't want the menu bar. Just put this in your ~/.Xresources file:
emacs.menuBar: off
These resources are used to customize frames appearance and are therefore read by Emacs at the very beginning.
See also:
Emacs manual: Menu Bars
Emacs manual: Table of Resources
man xrdb(1)
I'm a new emacs user using emacs for the awesome org-mode. I have links to all my org files at the top of my pages but everytime I click a link it splits my window, so I only have half of the screen estate available. How do I set it so that emacs does not split the window horizontally but rather opens up a new window for my links?
I'm assuming you mean you want to open the link in a new frame. (Emacs terminology is a bit different from other GUI apps, because Emacs predates X11. What would be called a "window" in other apps is called a "frame" in Emacs, because "window" already had a specific meaning in Emacs, and was used in the names of lots of functions.) What's happening now is that you have a frame containing one window, and Emacs is splitting that window to form two windows.
You need to customize org-link-frame-setup to use find-file-other-frame instead of the default find-file-other-window.
You can do this by typing M-x customize-variable <ENTER> org-link-frame-setup <ENTER>. Click the Value Menu next to find-file-other-window and select find-file-other-frame, then click Save for future sessions.
One option is to tell Emacs to never split windows, which can be done like so:
(setq same-window-regexps '("."))
This will keep your window from splitting, and then you use your regular commands to switch buffers to get back to what you were looking at.
This is as opposed to what it sounds like you were asking for, which was new frames, which IMO doesn't really help if you have limited screen real estate because you're now having to switch frames (graphical windows).