Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8777865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:23:00+00:00 2026-06-13T19:23:00+00:00

In my .emacs config file I have a following entry: (custom-set-variables (custom-set-faces ‘(font-lock-comment-face ((((class

  • 0

In my .emacs config file I have a following entry:

(custom-set-variables
  (custom-set-faces
    '(font-lock-comment-face ((((class color)
                                (min-colors 8)
                                (background dark))
                                (:foreground "red"))))))

This fixes the font color when TERM environment variable is set to screen, but breaks it when TERM is set to xterm. Is there a way to read value of TERM variable and execute that code only if TERM‘s value is screen? I found this questin slightly helpful, but still I don’t know how to read values of environment variables in elisp.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:23:02+00:00Added an answer on June 13, 2026 at 7:23 pm
    (when (string= (getenv "TERM") "screen")
        .... your code
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom config file format and I would like Emacs to recognize
Is there a something I can put in my .emacs config file to set
I came across the following line in a .emacs config file: (define-key scheme-mode-map \e\t
I use the following setting to config the font for emacs under windows system
I recently added the line (set-default-font -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1) to my .emacs file. After that find-file-other-window
I use the following structure in my emacs config: For each programming mode I
In my Emacs config I have such a string: (setq ibuffer-saved-filter-groups (quote ((default (dired
I'm trying to use emacs in fullscreen mode with a decent font. I have
I used to have the following line in auto-complete : (require 'auto-complete-config) (add-to-list 'ac-dictionary-directories
I've been updating my emacs config with the use of Rsense to allow for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.