I found the following post:


I copied the code to my .emacs but it didn't work. Why?


(eval-after-load "color-theme"
     (when (display-graphic-p)
       ;; settings for GUI emacs
       (add-to-list 'default-frame-alist '(background-color . "#282B35"))
       (add-to-list 'default-frame-alist '(foreground-color . "White"))
       (set-frame-font "Inconsolata 18" nil t))))
  • 1
    I would guess that you either don't have a color-theme library installed, or that you're not loading it. But you've failed to say what you mean by "it didn't work", so who can tell?
    – phils
    Commented Nov 30, 2018 at 0:49
  • @phils I just brewed installed emacs from scratch and after adding that to my .emacs file looks the same as a newly installed emacs. Does that help? Commented Nov 30, 2018 at 0:55
  • Maybe emacswiki.org/emacs/ColorThemes will help.
    – phils
    Commented Nov 30, 2018 at 1:32
  • @omajid I didn't know emacsSE existed. Can you help me move it there please? Thanks for telling me about it! :) Commented Nov 30, 2018 at 16:50
  • I would recommend no longer using the color-theme package, instead use the built-in themes. There are hundreds available.
    – InHarmsWay
    Commented Jan 12, 2019 at 21:32

1 Answer 1


Besides colour themes, where is a sublimity package, which incorporates some of the Sublime's features - like scrolling (last time I tried it, it was a bit laggy though) or a minimap.

  • how do I actually install that? Commented Jan 11, 2019 at 0:12
  • 1
    (require 'sublimity) (with-eval-after-load 'sublimity (sublimity-mode 1)) or via use-package: (use-package sublimity :config (sublimity-mode 1))
    – stlk
    Commented Jan 11, 2019 at 1:08
  • that only changes theme's, right? Commented Jan 11, 2019 at 3:54
  • not really, rather it adds a minimap and changes the scrolling. It has nothing to do with colours or font locks.
    – stlk
    Commented Jan 12, 2019 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.