0

I found the following post:

http://www.gonsie.com/blorg/subl-to-emacs.html#the-best-from-sublime-text

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

code:

(eval-after-load "color-theme"
  '(progn
     (color-theme-initialize)
     (color-theme-dusk)
     (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))))

migrated from stackoverflow.com Jan 12 at 10:31

This question came from our site for professional and enthusiast programmers.

  • 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 Nov 30 '18 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? – Pinocchio Nov 30 '18 at 0:55
  • Maybe emacswiki.org/emacs/ColorThemes will help. – phils Nov 30 '18 at 1:32
  • @omajid I didn't know emacsSE existed. Can you help me move it there please? Thanks for telling me about it! :) – Pinocchio Nov 30 '18 at 16:50
  • I would recommend no longer using the color-theme package, instead use the built-in themes. There are hundreds available. – InHarmsWay Jan 12 at 21:32
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? – Pinocchio Jan 11 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 Jan 11 at 1:08
  • that only changes theme's, right? – Pinocchio Jan 11 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 Jan 12 at 12:26

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

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