in Education by
I program with Emacs on Ubuntu (Hardy Heron at the moment), and I like the default text coloration in the Emacs GUI. However, the default text coloration when Emacs is run in the terminal is different and garish. How do I make the colors in the terminal match the colors in the GUI? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You don't have to be stuck to your terminal's default 16 (or fewer) colours. Modern terminals will support 256 colours (which will get you pretty close to your GUI look). Unfortunately, getting your terminal to support 256 colours is the tricky part, and varies from term to term. This page helped me out a lot (but it is out of date; I've definitely gotten 256 colours working in gnome-terminal and xfce4-terminal; but you may have to build them from source.) Once you've got your terminal happily using 256 colours, the magic invocation is setting your terminal type to "xterm-256color" before you invoke emacs, e.g.: env TERM=xterm-256color emacs -nw Or, you can set TERM in your .bashrc file: export TERM=xterm-256color You can check if it's worked in emacs by doing M-x list-colors-display, which will show you either 16, or all 256 glorious colours. If it works, then look at color-theme like someone else suggested. (You'll probably get frustrated at some point; god knows I do every time I try to do something similar. But stick with it; it's worth it.)

Related questions

0 votes
    I am trying to use qt creator and python to generate flowcharts with values. I want to save the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    Voltage source and terminal voltage can be related as ___________ (a) terminal voltage is higher than the source emf ... EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 20, 2021 in Education by JackTerrance
0 votes
    Voltage source and terminal voltage can be related as ___________ (a) terminal voltage is higher than the source ... section Circuit Elements and Kirchhoff's Laws of Network Theory...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    Currently I try to switch from vim to emacs and have some difficulty while editing code. For most of ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 17, 2022 in Education by JackTerrance
0 votes
    When I cut (kill) text in Emacs 22.1.1 (in its own window on X, in KDE, on Kubuntu), ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    When coding in elisp, I find that I'm stopping at hyphens when moving by words, and would prefer ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Can we make changes on the repo and how we can make sure that the same has been merged into the working copy?...
asked Feb 18, 2021 in Technology by JackTerrance
0 votes
    Whenever we get a new release of code from our vendor, we need to perform basic tests to ensure ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    How do I update the GUI from another thread in C#?...
asked Jan 16, 2021 in Technology by JackTerrance
0 votes
    How do you calculate the terminal value in a DCF valuation?...
asked Oct 10, 2020 in Credit by Editorial Staff
0 votes
    I am fairly new to Emacs and I have been trying to figure out how to change the default folder ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 24, 2022 in Education by JackTerrance
0 votes
    I like to use Emacs' shell mode, but it has a few deficiencies. One of those is that it's not ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 23, 2022 in Education by JackTerrance
0 votes
    I've been aware of Steve Yegge's advice to swap Ctrl and Caps Lock for a while now, although I ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 12, 2022 in Education by JackTerrance
0 votes
    I've been aware of Steve Yegge's advice to swap Ctrl and Caps Lock for a while now, although I ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 12, 2022 in Education by JackTerrance
...