In the past the variable window-system provided another way to check for this, but it has been deprecated for a while, so I’d advise against using it. or if you don't have too much invested in Manjaro yet, you could try a different distro.( if ( display-graphic-p ) GUI mode ( progn ( your ) ( code )) Terminal mode ( your ) ( code )) You'll have to do some troubleshooting with your shell and desktop to figure it out. Tldr It sounds like either a non-gui Emacs package, or Emacs somehow being called with the "-nw" argument, or some other weird pre-configuration that shouldn't have happened. I'm using Fedora now, which I'd also recommend if you're inclined to try a different distro. So it's closer to the standard expectation. It is pretty much an Arch installer with reasonable defaults and a couple extra utilities, and any packages you install come straight from the Arch repos. Not to criticize or get into a debate about Linux distros, but EndeavourOS is another Arch-based option that I rather enjoyed using for a while. So it could be that some way or another that got installed or was pre-installed on your system. But many distributions ship a separate package of Emacs without the GUI (for use on servers or for people who prefer that for whatever reason). And that should be what you get, regardless of whether you start it from a terminal or the menu. If you ran "pacman -S emacs" to install Emacs, it should have included the GUI version. I frequently start Emacs from the terminal using just "emacs", but this results in a new window with Emacs running as a GUI program. With a regular full install of Emacs, when you want to intentionally start Emacs in the terminal in order to run it in the terminal, you enter "emacs -nw". Similarly on the command line, it could be that there's an alias or a bash script somewhere that's calling Emacs with different arguments. Or it could be calling the terminal Emacs command (with the -nw argument) without also invoking a terminal to run it in. The desktop file could be calling a different command (or script), or the same command with different arguments. Menu entries in most Linux DEs (including KDE) are configured via. And from what I recall about Manjaro, there are several spins of it that come pre-customized to varying degrees, so that might be a factor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |