Skip to main content
replaced http://emacs.stackexchange.com/ with https://emacs.stackexchange.com/
Source Link

Use display-graphic-p to determine if Emacs is in a GUI or not.

Assuming solarized is installed and loaded:

(if (display-graphic-p) 
    (enable-theme 'solarized) 
  (enable-theme 'wheatgrass))

See also: Is there a way to detect that emacs is running in a terminal?Is there a way to detect that emacs is running in a terminal?

Use display-graphic-p to determine if Emacs is in a GUI or not.

Assuming solarized is installed and loaded:

(if (display-graphic-p) 
    (enable-theme 'solarized) 
  (enable-theme 'wheatgrass))

See also: Is there a way to detect that emacs is running in a terminal?

Use display-graphic-p to determine if Emacs is in a GUI or not.

Assuming solarized is installed and loaded:

(if (display-graphic-p) 
    (enable-theme 'solarized) 
  (enable-theme 'wheatgrass))

See also: Is there a way to detect that emacs is running in a terminal?

deleted 28 characters in body
Source Link
Jordon Biondo
  • 12.6k
  • 2
  • 45
  • 63

Use display-graphic-p to determine if Emacs is in a GUI or not.

Assuming solarized is installed and loaded:

(if (display-graphic-p) 
    (enable-theme 'solarized) 
  (enable-theme 'wheatgrass))

See also: Is there a way to detect that emacs is running in a terminal?

(edit : display-graphic-p)

Use display-graphic-p to determine if Emacs is in a GUI or not.

Assuming solarized is installed and loaded:

(if (display-graphic-p) 
    (enable-theme 'solarized) 
  (enable-theme 'wheatgrass))

See also: Is there a way to detect that emacs is running in a terminal?

(edit : display-graphic-p)

Use display-graphic-p to determine if Emacs is in a GUI or not.

Assuming solarized is installed and loaded:

(if (display-graphic-p) 
    (enable-theme 'solarized) 
  (enable-theme 'wheatgrass))

See also: Is there a way to detect that emacs is running in a terminal?

Use display-graphic-p to determine if Emacs is in a GUI or not.

Assuming solarized is installed and loaded:

(if (display-graphicsgraphic-p) 
    (enable-theme 'solarized) 
  (enable-theme 'wheatgrass))

See also: Is there a way to detect that emacs is running in a terminal?

(edit : display-graphic-p)

Use display-graphic-p to determine if Emacs is in a GUI or not.

Assuming solarized is installed and loaded:

(if (display-graphics-p) 
    (enable-theme 'solarized) 
  (enable-theme 'wheatgrass))

See also: Is there a way to detect that emacs is running in a terminal?

Use display-graphic-p to determine if Emacs is in a GUI or not.

Assuming solarized is installed and loaded:

(if (display-graphic-p) 
    (enable-theme 'solarized) 
  (enable-theme 'wheatgrass))

See also: Is there a way to detect that emacs is running in a terminal?

(edit : display-graphic-p)

Source Link
Jordon Biondo
  • 12.6k
  • 2
  • 45
  • 63
Loading