-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] how could i automatically load another theme? #5
Comments
Hi there, You need to change the following section of emax.org and replace it with code for your theme of choice:
|
hello,
ok i see.
i delete that code and put in my code.
During my playing with your package, i discovered a suprising thing.
Inside the Easy-customization m-x customize-group org
i have no completion, if i have to insert files.
E.g. in group org-agenda to insert org-agenda-files.
In my old emacs package the behaviour was different.
If i insert ~ there pops up a filebrowser and i can choose where
to go next.
Is there anything missing?
Regards
Poul
Am Sun, 04 Mar 2018 03:48:58 -0800
Manish Parashar <[email protected]> schrieb:
… Hi there,
You need to change the following section of emax.org and replace
it with code for your theme of choice:
`(use-package zenburn-theme
:demand t
:config
(load-theme 'zenburn t)
(set-face-attribute 'font-lock-comment-face nil :italic t)
(set-face-attribute 'font-lock-doc-face nil :italic t)
(zenburn-with-color-variables
(set-face-attribute 'button nil :foreground zenburn-yellow-2)
(set-face-attribute 'default nil
:background zenburn-bg-05
:height mp/font-size-default
:font mp/font-family)
(set-face-attribute 'help-argument-name nil :foreground
zenburn-orange :italic nil) (set-face-attribute 'hl-line
nil :background zenburn-bg+1) (set-face-attribute 'header-line nil
:background zenburn-bg-1
:box `(:line-width 2 :color ,zenburn-bg-1)
:height mp/font-size-header-line)
(set-face-attribute 'mode-line nil
:box `(:line-width 2 :color ,zenburn-bg-1)
:foreground zenburn-bg+3
:height mp/font-size-mode-line)
(set-face-attribute 'mode-line-inactive nil
:box `(:line-width
2 :color ,zenburn-bg-05) :foreground zenburn-bg+3
:height mp/font-size-mode-line)
(set-face-attribute 'region nil
:background zenburn-fg-1
:distant-foreground 'unspecified)
(set-face-attribute 'vertical-border nil :foreground
zenburn-bg))
;; NOTE: See
bbatsov/zenburn-emacs#278.
(zenburn-with-color-variables (mapc
(lambda (face)
(when (eq (face-attribute face :background) zenburn-bg)
(set-face-attribute face nil :background 'unspecified)))
(face-list))))`
|
hello, Regards |
Hello, ;; Copyright (C) 2018 Manish Parashar ;; Author: Manish Parashar ;; This program is free software. You can redistribute it and/or modify it under ;;; Commentary: ;; Following lines load an Org file and build the configuration code out of it. ;;; Code: ;;(let ((gc-cons-threshold most-positive-fixnum)) ;; Set repositories ;; Install dependencies ;; Use latest Org (defvar emax-root (concat (expand-file-name "~") "/emax")) (setq exec-path (cons emax-bin exec-path)) (setq exec-path (cons emax-bin64 exec-path)) (setq exec-path (cons emax-mingw64 exec-path)) (dolist (dir '(" (set-language-environment 'utf-8) ;; Tangle configuration ;;; init.el ends here Here my emax.org
** Use better defaults Maximize by default, fullscreen on Windows. #+BEGIN_SRC emacs-lisp ;;(toggle-frame-maximized) Some UI elements are rather invasive. No-mouse master race. #+BEGIN_SRC emacs-lisp Here are what I consider better defaults as per my own experience. #+BEGIN_SRC emacs-lisp (defvar mp/font-family "Source Code Pro" "The font to use.") #+END_SRC Garbage-collect on focus-out, Emacs /should/ feel snappier. #+BEGIN_SRC emacs-lisp ** Load =custom.el= One is able to use the customization interface that is bundled within Emacs. It Since that in my case, the actual configuration file is a new one, crafted by #+BEGIN_SRC emacs-lisp ** Load =secret.el= I load =~/emax/secret.el= to keep sensible things out of version control. #+BEGIN_SRC emacs-lisp (let ((secret.el (expand-file-name "secret.el" "~/emax/")))
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
** Built in keybindings #+begin_src emacs-lisp ** Newline ** Recentf ** Ivy #+begin_src emacs-lisp ** Hyperlinks #+begin_src emacs-lisp ** Treemacs
#+begin_src emacs-lisp ;;; Slime (slime-setup '(slime-fancy)) *** HyperSpec #+begin_src emacs-lisp (eval-after-load 'slime *** Paredit #+begin_src emacs-lisp ** PowerShell #+begin_src emacs-lisp ; (autoload 'powershell "powershell" "Run powershell as a shell within emacs." t) ** C/C++ #+begin_src emacs-lisp *** Default indentation #+begin_src emacs-lisp ** Find init #+begin_src emacs-lisp (bind-key "C-c I" 'find-init-file) ** Aspell #+begin_src emacs-lisp ;; Set "DICTDIR" variable ;; Automatically enable flyspell-mode in text-mode ;;(dolist (hook '(text-mode-hook)) ;;(setq flyspell-issue-message-flag nil) ;;(require 'auto-dictionary) (require 'ispell) ** GnuPG #+begin_src emacs-lisp ** PDF-TOOLS #+begin_src emacs-lisp [[#emaxorg][Back to top]] Here my emax.el ;;(toggle-frame-maximized) (when window-system (setq-default (defvar mp/font-family "Source Code Pro" "The font to use.") (add-hook 'focus-out-hook #'garbage-collect) (setq-default custom-file (expand-file-name "custom.el" user-emacs-directory)) (let ((secret.el (expand-file-name "secret.el" "~/emax/"))) (load-theme 'solarized-light t) (use-package mdi (global-set-key (kbd "M-o") 'other-window) (setq require-final-newline t) (recentf-mode 1) ; keep a list of recently opened files (setq org-completion-use-ido t) ;;(require 'smex) ; Not needed if you use package.el ;;(require 'ido) (require 'ivy) (require 'ivy) (add-hook 'before-save-hook 'delete-trailing-whitespace) (setq browse-url-browser-function 'browse-url-default-browser) (require 'treemacs) ;; dired einstellungen ;; paced-mode (global-undo-tree-mode) ;;; Slime (slime-setup '(slime-fancy)) (eval-after-load "hyperspec" (eval-after-load 'slime (use-package paredit ;; Running Windows Powershell from within Emacs ; (autoload 'powershell "powershell" "Run powershell as a shell within emacs." t) (add-hook 'c-mode-common-hook (defun my-c-mode-common-hook () (defun find-init-file () (bind-key "C-c I" 'find-init-file) ;; Changes made for Aspell ;; Set "DICTDIR" variable ;; Automatically enable flyspell-mode in text-mode ;;(dolist (hook '(text-mode-hook)) ;;(setq flyspell-issue-message-flag nil) ;;(require 'auto-dictionary) (require 'ispell) (setq epg-gpg-home-directory " (pdf-tools-install :no-query) Hope it helps |
(getenv "HOME") will return the ~ path emacs uses on your system. As for the rest of it, well, this is merely a barebones setup. You can start from scratch or even use your old config with minor changes. I'll look into it when I have some time on my hands. Thanks for understanding. |
hello, |
hello,
i just try to change the theme. Want my solarized-light theme back.
But after install the theme and changed the line (load-theme 'zenburn nil) inside emax.org i cannot change the theme automatically. Every start emax loads zenburn again.
Is it possible to change between available themes ?
Regards
Poul
The text was updated successfully, but these errors were encountered: