* Issues With Trying To Create My Own Theme For Emacs
@ 2022-02-19 21:55 Samuel Banya
2022-02-22 12:52 ` Eric S Fraga
0 siblings, 1 reply; 5+ messages in thread
From: Samuel Banya @ 2022-02-19 21:55 UTC (permalink / raw)
To: Emanuel Berg
[-- Attachment #1: Type: text/plain, Size: 876 bytes --]
Hey there,
So I have been trying to create my own theme for Emacs, and have a ton of ideas for more of them.
However, when I try to load it with 'M-x load-theme' and specify the name of the theme, aka 'Morrowind Menu Theme', I get the following error:
helm-M-x-execute-command: Symbol’s value as variable is void: Menu
Updating buffer list...
Formats have changed, recompiling...done
Updating buffer list...done
I am attaching the theme I am currently working on right now.
With this in mind, I have 3 questions:
Q1. How do I fix this issue / is this an issue with Helm itself not being catered towards the theme I made?
Q2. How could I make this theme be compatible with Helm itself and 'Spacemodeline'?
Q3. How could I load this theme via my existing Emacs config with a direct command instead of having to use 'M-x load-theme'
Thanks :)
Sam
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Morrowind Menu Theme-theme.el --]
[-- Type: text/x-emacs-lisp; name="Morrowind Menu Theme-theme.el", Size: 3395 bytes --]
(deftheme Morrowind Menu Theme
"Created 2022-02-19.")
(custom-theme-set-faces
'Morrowind Menu Theme
'(default ((t (:inherit nil :extend nil :stipple nil :background "#735229" :foreground "#c9a557" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 128 :width normal :foundry "SRC" :family "Hack"))))
'(cursor ((t (:background "#000000"))))
'(fixed-pitch ((t (:family "Monospace"))))
'(variable-pitch ((((type w32)) (:foundry "outline" :family "Arial")) (t (:family "Sans Serif"))))
'(escape-glyph ((((background dark)) (:foreground "cyan")) (((type pc)) (:foreground "magenta")) (t (:foreground "brown"))))
'(homoglyph ((((background dark)) (:foreground "cyan")) (((type pc)) (:foreground "magenta")) (t (:foreground "brown"))))
'(minibuffer-prompt ((t (:inherit bold :foreground "#c9a557"))))
'(highlight ((t (:foreground "#b2b2b2" :background "#222"))))
'(region ((t (:extend t :background "#212a63"))))
'(shadow ((t (:foreground "#704e29"))))
'(secondary-selection ((t (:extend t :background "#100a14"))))
'(trailing-whitespace ((t (:background "#9d3115"))))
'(font-lock-builtin-face ((t (:foreground "#283bb4"))))
'(font-lock-comment-delimiter-face ((default (:inherit (font-lock-comment-face)))))
'(font-lock-comment-face ((t (:background "#292e34" :foreground "#12249a" :slant normal))))
'(font-lock-constant-face ((t (:foreground "#0f6331"))))
'(font-lock-doc-face ((t (:foreground "#9f8766"))))
'(font-lock-function-name-face ((t (:foreground "#027731" :inherit bold))))
'(font-lock-keyword-face ((t (:slant normal :foreground "#c9a557" :inherit bold))))
'(font-lock-negation-char-face ((t (:foreground "#0f6331"))))
'(font-lock-preprocessor-face ((t (:foreground "#0a803a"))))
'(font-lock-regexp-grouping-backslash ((t (:inherit (bold)))))
'(font-lock-regexp-grouping-construct ((t (:inherit (bold)))))
'(font-lock-string-face ((t (:foreground "#2d9574"))))
'(font-lock-type-face ((t (:inherit bold :foreground "#a48954"))))
'(font-lock-variable-name-face ((t (:foreground "#5a6cdd"))))
'(font-lock-warning-face ((t (:background "#292b2e" :foreground "#e85100"))))
'(button ((t (:inherit (link)))))
'(link ((t (:foreground "#12249a" :underline t))))
'(link-visited ((t (:foreground "#128c43" :underline t))))
'(fringe ((t (:foreground "#b2b2b2" :background "#292b2e"))))
'(header-line ((t (:background "#212026"))))
'(tooltip ((t (:background "#212a63" :foreground "#c9a557" :underline nil :slant normal :weight normal))))
'(mode-line ((t (:box (:line-width 1 :color "#5d4d7a" :style nil) :foreground "#b2b2b2" :background "#222226"))))
'(mode-line-buffer-id ((t (:foreground "#027731" :inherit bold))))
'(mode-line-emphasis ((t (:weight bold))))
'(mode-line-highlight ((((class color) (min-colors 88)) (:box (:line-width 2 :color "grey40" :style released-button))) (t (:inherit (highlight)))))
'(mode-line-inactive ((t (:box (:line-width 1 :color "#5d4d7a" :style nil) :foreground "#b2b2b2" :background "#292b2e"))))
'(isearch ((t (:background "#058535" :foreground "#292b2e"))))
'(isearch-fail ((t (:background "#9d3115"))))
'(lazy-highlight ((t (:background "#004316" :weight normal))))
'(match ((t (:background "#444155" :foreground "#06a81b"))))
'(next-error ((t (:inherit (region)))))
'(query-replace ((t (:inherit (isearch))))))
(provide-theme 'Morrowind Menu Theme)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Issues With Trying To Create My Own Theme For Emacs
2022-02-19 21:55 Issues With Trying To Create My Own Theme For Emacs Samuel Banya
@ 2022-02-22 12:52 ` Eric S Fraga
2022-02-22 14:00 ` Stephen Berman
0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2022-02-22 12:52 UTC (permalink / raw)
To: help-gnu-emacs
On Saturday, 19 Feb 2022 at 16:55, Samuel Banya wrote:
> However, when I try to load it with 'M-x load-theme' and specify the
> name of the theme, aka 'Morrowind Menu Theme', I get the following
> error:
I'm not sure you can have spaces in the name of the theme. Try
"Morrowind-Menu-Theme" maybe?
--
Eric S Fraga with org 9.5.2 in Emacs 29.0.50 on Debian 11.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Issues With Trying To Create My Own Theme For Emacs
2022-02-22 12:52 ` Eric S Fraga
@ 2022-02-22 14:00 ` Stephen Berman
2022-02-22 14:16 ` Eric S Fraga
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Berman @ 2022-02-22 14:00 UTC (permalink / raw)
To: Eric S Fraga; +Cc: help-gnu-emacs
On Tue, 22 Feb 2022 12:52:23 +0000 Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> On Saturday, 19 Feb 2022 at 16:55, Samuel Banya wrote:
>> However, when I try to load it with 'M-x load-theme' and specify the
>> name of the theme, aka 'Morrowind Menu Theme', I get the following
>> error:
>
> I'm not sure you can have spaces in the name of the theme. Try
> "Morrowind-Menu-Theme" maybe?
You can have spaces but you have to escape them:
Morrowind\ Menu\ Theme
Cf. (info "(elisp) Symbol Type"):
A symbol name can contain any characters whatever. Most symbol names
are written with letters, digits, and the punctuation characters
‘-+=*/’. Such names require no special punctuation; the characters of
the name suffice as long as the name does not look like a number. (If
it does, write a ‘\’ at the beginning of the name to force
interpretation as a symbol.) The characters ‘_~!@$%^&:<>{}?’ are less
often used but also require no special punctuation. Any other
characters may be included in a symbol’s name by escaping them with a
backslash.
Steve Berman
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Issues With Trying To Create My Own Theme For Emacs
2022-02-22 14:00 ` Stephen Berman
@ 2022-02-22 14:16 ` Eric S Fraga
2022-02-22 18:19 ` Samuel Banya
0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2022-02-22 14:16 UTC (permalink / raw)
To: help-gnu-emacs
On Tuesday, 22 Feb 2022 at 15:00, Stephen Berman wrote:
> You can have spaces but you have to escape them:
> Morrowind\ Menu\ Theme
Indeed and thank you but my basic suggestion still applies: the problem
is how the OP has named the theme.
--
Eric S Fraga with org 9.5.2 in Emacs 29.0.50 on Debian 11.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Issues With Trying To Create My Own Theme For Emacs
2022-02-22 14:16 ` Eric S Fraga
@ 2022-02-22 18:19 ` Samuel Banya
0 siblings, 0 replies; 5+ messages in thread
From: Samuel Banya @ 2022-02-22 18:19 UTC (permalink / raw)
To: Emanuel Berg
Thanks guys, I'll give that a shot to just rename the theme, probably dumb mistake on my part.
On Tue, Feb 22, 2022, at 9:16 AM, Eric S Fraga wrote:
> On Tuesday, 22 Feb 2022 at 15:00, Stephen Berman wrote:
> > You can have spaces but you have to escape them:
> > Morrowind\ Menu\ Theme
>
> Indeed and thank you but my basic suggestion still applies: the problem
> is how the OP has named the theme.
>
> --
> Eric S Fraga with org 9.5.2 in Emacs 29.0.50 on Debian 11.2
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-02-22 18:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-19 21:55 Issues With Trying To Create My Own Theme For Emacs Samuel Banya
2022-02-22 12:52 ` Eric S Fraga
2022-02-22 14:00 ` Stephen Berman
2022-02-22 14:16 ` Eric S Fraga
2022-02-22 18:19 ` Samuel Banya
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.