Giter Club home page Giter Club logo

emacs-kanagawa-theme's Introduction

Hi there ๐Ÿ‘‹

๐Ÿ™‹ Developer and linux enthusiast. Currently (learning '(esp32 Erlang Elixir Lisp))

Rinher: erlang na rinha-de-backend

โš™๏ธ Stack

๐Ÿ’ป C, Erlang, Elixir, Typescript, Go, Python, Nix, Ansible, Shell script, Docker...

๐Ÿ’ฒ Nixos, Awesomewm, Emacs

Fabio Kleis Top Langs

๐Ÿ“š๐ŸŽ“ Studying

๐Ÿ™ @erlang-learning - Studying erlang.

๐Ÿ‘ฝ @land-of-lisp - Studying lisp by reading land of lisp.

๐Ÿ› ๏ธ Projects

๐Ÿ‘พ ๐Ÿงต System Monitoring - @toscop - Toscop a system monitoring cli like top.

๐Ÿงฆ Network Programming

  • @rawhttp - Erlang raw http server.
  • @ftcperl - Erlang File server and chat with Python client over TCP.
  • @fserver-udp - Golang File server and client over UDP.

๐Ÿฆ€ GUI/Cli - @rpdf - Convert images to pdfs, available in latest release

๐Ÿ Active Directory CLI - @padc - Python Active Directory Command, available in pypi

๐Ÿง™ Waves - @waves - C++ OpenGL roguelike game

emacs-kanagawa-theme's People

Contributors

arouene avatar fabiokleis avatar neferhotep avatar progfolio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

emacs-kanagawa-theme's Issues

kanagawa-theme-true-color-p docstring / value inverted

Hello,

(defvar kanagawa-theme-true-color-p
  "When non-nil use true color values in color palette."
  (or (display-graphic-p) (= (tty-display-color-cells) 16777216)))

The docstring and initial-value are inverted. Causing issue to marginalia and describe-variable.

For exemple:

(describe-variable 'kanagawa-theme-true-color-p)

Cause this issue:

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p t)
  #f(compiled-function () #<bytecode 0x180a283d02390272>)()
  help--window-setup("*Help*" #f(compiled-function () #<bytecode 0x180a283d02390272>))
  describe-variable(kanagawa-theme-true-color-p)
  eval((describe-variable 'kanagawa-theme-true-color-p) nil)

Help needed with overriding default colors.

Hello!

Thank you for porting Kanagawa to Emacs, I missed it from Neovim :)

I am having trouble overriding the default sumi-ink-1b color. I might be doing something wrong, could you please help me?

This is my setup (I'm using elpaca, it allows specifying recipe within :ensure):

(use-package kanagawa-theme
  :ensure (:host github :repo "Fabiokleis/emacs-kanagawa-theme")
  :demand t
  :custom
  (kanagawa-theme-comment-italic)
  (kanagawa-theme-custom-colors '((sumi-ink-1b . "#0A0E14")))
  :config
  (load-theme 'kanagawa t)

From what I was able to understand by reading the source code, the kanagawa-theme-custom-colors accepts an alist, and I believe that I have the syntax correct since Emacs isn't complaining.

Thank you

Theme assumes byte-compilation takes place in runtime environment

When loading kangawa-theme, the terminal color palette is used despite being loaded in a graphical environment. This is due to the eval-when-compile form here:

(eval-when-compile
(defun kanagawa-theme-true-color-p ()
(or (display-graphic-p)
(= (tty-display-color-cells) 16777216)))
(defvar kanagawa-theme-dark-palette
`((fuji-white ,(if (kanagawa-theme-true-color-p) "#DCD7BA" "#ffffff"))
(old-white ,(if (kanagawa-theme-true-color-p) "#C8C093" "#ffffff"))
(sumi-ink-0 ,(if (kanagawa-theme-true-color-p) "#16161D" "#000000"))
(sumi-ink-1b ,(if (kanagawa-theme-true-color-p) "#1f1f28" "#000000"))
(sumi-ink-1 ,(if (kanagawa-theme-true-color-p) "#1F1F28" "#080808"))
(sumi-ink-2 ,(if (kanagawa-theme-true-color-p) "#2A2A37" "#121212"))
(sumi-ink-3 ,(if (kanagawa-theme-true-color-p) "#363646" "#303030"))
(sumi-ink-4 ,(if (kanagawa-theme-true-color-p) "#54546D" "#303030"))
(wave-blue-1 ,(if (kanagawa-theme-true-color-p) "#223249" "#4e4e4e"))
(wave-blue-2 ,(if (kanagawa-theme-true-color-p) "#2D4F67" "#585858"))
(wave-aqua-1 ,(if (kanagawa-theme-true-color-p) "#6A9589" "#6a9589"))
(wave-aqua-2 ,(if (kanagawa-theme-true-color-p) "#7AA89F" "#717C7C"))
(winter-green ,(if (kanagawa-theme-true-color-p) "#2B3328" "#585858"))
(winter-yellow ,(if (kanagawa-theme-true-color-p) "#49443C" "#585858"))
(winter-red ,(if (kanagawa-theme-true-color-p) "#43242B" "#585858"))
(winter-blue ,(if (kanagawa-theme-true-color-p) "#252535" "#585858"))
(autumn-green ,(if (kanagawa-theme-true-color-p) "#76946A" "#585858"))
(autumn-red ,(if (kanagawa-theme-true-color-p) "#C34043" "#585858"))
(autumn-yellow ,(if (kanagawa-theme-true-color-p) "#DCA561" "#585858"))
(samurai-red ,(if (kanagawa-theme-true-color-p) "#E82424" "#585858"))
(ronin-yellow ,(if (kanagawa-theme-true-color-p) "#FF9E3B" "#585858"))
(dragon-blue ,(if (kanagawa-theme-true-color-p) "#658594" "#658594"))
(fuji-gray ,(if (kanagawa-theme-true-color-p) "#727169" "#717C7C"))
(spring-violet-1 ,(if (kanagawa-theme-true-color-p) "#938AA9" "#717C7C"))
(oni-violet ,(if (kanagawa-theme-true-color-p) "#957FB8" "#717C7C"))
(crystal-blue ,(if (kanagawa-theme-true-color-p) "#7E9CD8" "#717C7C"))
(spring-violet-2 ,(if (kanagawa-theme-true-color-p) "#9CABCA" "#717C7C"))
(spring-blue ,(if (kanagawa-theme-true-color-p) "#7FB4CA" "#717C7C"))
(light-blue ,(if (kanagawa-theme-true-color-p) "#A3D4D5" "#717C7C"))
(spring-green ,(if (kanagawa-theme-true-color-p) "#98BB6C" "#717C7C"))
(_boat-yellow-1 ,(if (kanagawa-theme-true-color-p) "#938056" "#717C7C"))
(boat-yellow-2 ,(if (kanagawa-theme-true-color-p) "#C0A36E" "#717C7C"))
(carp-yellow ,(if (kanagawa-theme-true-color-p) "#E6C384" "#717C7C"))
(sakura-pink ,(if (kanagawa-theme-true-color-p) "#D27E99" "#717C7C"))
(wave-red ,(if (kanagawa-theme-true-color-p) "#E46876" "#717C7C"))
(peach-red ,(if (kanagawa-theme-true-color-p) "#FF5D62" "#717C7C"))
(surimi-orange ,(if (kanagawa-theme-true-color-p) "#FFA066" "#717C7C"))
(_katana-gray ,(if (kanagawa-theme-true-color-p) "#717C7C" "#717C7C"))
(comet ,(if (kanagawa-theme-true-color-p) "#54536D" "#4e4e4e")))
"Default palette for Kanagawa dark theme."))

Newer package managers compile packages in a separate Emacs subprocess, which is not graphical.

Is there a reason the palette needs to be determined at compilation time, or can this be changed to be set at runtime?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.