GithubHelp home page GithubHelp logo

rougier / elegant-emacs Goto Github PK

View Code? Open in Web Editor NEW
1.4K 30.0 78.0 12.91 MB

A very minimal but elegant emacs (I think)

License: GNU General Public License v3.0

Emacs Lisp 99.33% Python 0.67%
emacs emacs-configuration emacs-theme elegant-theme

elegant-emacs's People

Contributors

divinedominion avatar grettke avatar mtbakerguy avatar phuhl avatar pjhuxford avatar rougier avatar syohex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elegant-emacs's Issues

Invalid read syntax

Hello, I am using a Fedora machine and loading the theme via "load". I have cloned your repo in my .emacs and then with load I call the two .el files.

When I do I get an error while loading the config, in particular:

Invalid read syntax: )

as I understand this comes from a not matched parenthesis. The error occurs while calling both or just one. Am I doing something wrong? Loading it like in the README coul be a problem since I use my config on multiple machines and have everything automated thru the init file

Font lock feature for code segments

Hi, nice project.

In the README are screenshots of =[C-s]= beeing displayed as
grafik

For me it is displayed like this, though:
grafik

Any idea what might be missing?

I did not include the sanity.el file but it did'nt appear to be the reason for this...

Glyphs for truncated and wrapped lines not working in Org mode.

The line (setq org-ellipsis " …") in elegance.el overwrites the custom glyphs for truncated and wrapped lines defined later in the file, but only in Org mode.

One fix I have found is to replace this line with

(set-display-table-slot standard-display-table 'selective-display
                        (string-to-vector " …"))

This should also change the corresponding ellipsis in Outline mode.

Tab Bar Integration?

I have been using elegant emacs for a while now, it's a really beautiful emacs configuration! I'm really glad that exists! I've already played quite a bit with it's configurations, and I can't help but think that it would be really aesthetic for tab bar mode to "appear"
where the file name appears!

I haven't had time to look at this, and I'm not sure if this is a valid issue to open, but still I think it would be really cool!

Customizing header/modeline and design ideas

Hello there, I'm trying elegant-emacs but since I'm using God-mode it's a little confuse not knowing if god is activated.
Sorry if the following sounds too much "my use case", but I would like to share some ideas and ask for some help in trying to improve it for god-mode.

I'm ok with the header being minimalist, I liked it, but unfortunately it's too much minimalist for me without showing the major-mode or some other hints like the god-mode, so I was thinking if there is a way to customize the header so I can try some things.

How can I change this icon?
image

Could we define a header like in mu4e-dashboard where you have the RW/RO in a colored box?
image

Let's call BOX the area of the header where we have either the icon or the RW/R0 colored boxes.

This would be enough for me. When god-mode is active I would have the BOX colored (just like R0), and when inactive it would be a grey BOX (just like RW).
This background change would be very useful.
I managed to put a background color into the entire bar, but didn't managed to figure out how to create this separation like in mu4e-dashboard.
image

In fact I couldn't find yet where the icon is defined, or the elements where placed in the header. I'm a little busy but I will try to free up some time to investigate the code further.
E.g. where are defined that the line:column would be in the end of the modeline and not in the center or right after the filename?

This "BOX" would be useful also for show the initials of the enabled major-mode, like instead of RW/R0, it could be EL (for elisp) or TXT. Would still be minimalist but way more informative.

Although it's not as "clean" as the current design, it would be a very useful option to toggle for someone using god or evil I think.

On Windows: Font name should be "Roboto Mono"

When using on Windows, the font name apparently must be "Roboto Mono" as "Roboto Mono Light" is not recognized and therefore not loaded (I did install all the roboto fonts from google fonts).

Right corner alignment off

I found that, for whatever reason, the line/column indicators would crop in the corners:

elegant-emacs/elegant.el

Lines 155 to 171 in 2aba642

(defun mode-line-render (left right)
"Function to render the modeline LEFT to RIGHT."
(let* ((available-width (- (window-width) (length left) )))
(format (format "%%s %%%ds" available-width) left right)))
(setq-default mode-line-format
'((:eval
(mode-line-render
(format-mode-line (list
(propertize "" 'face `(:inherit mode-line-buffer-id)
'help-echo "Mode(s) menu"
'mouse-face 'mode-line-highlight
'local-map mode-line-major-mode-keymap)
" %b "
(if (and buffer-file-name (buffer-modified-p))
(propertize "(modified)" 'face `(:inherit face-faded)))))
(format-mode-line
(propertize "%4l:%2c" 'face `(:inherit face-faded)))))))

(It's probably due to a macOS and emacs 28 font rendering issue because esp. with light fonts I ran into calculation problems in the past.)

Screen Shot 2021-11-07 at 00 44 38

Org-agenda can't be displayed

I've reproduced this on two different installations. Trying to run the org-agenda function leads to the following error: "Invalid face: org-agenda-property-face"

How to install?

This is beautiful! How to install this "theme" alongside one's existing setup?
Thanks in advance!

Compatibility with third party themes?

How easy (or hard) would using a third party colour theme with this setup, i.e. without the default emacs modeline and other stuff? I've tried using (for example's sake) the modus-operandi theme and a blank bar appears where the default modeline would have been. I'm somewhat new to emacs and elisp so please bear with me if this is a really stupid question for me to ask :)

Invalid face: org-agenda-property-face

Can't use org-agenda with the following statement, in line 458 of elegance.el:

(set-face 'org-agenda-property-face 'face-faded)

If I remove it, it works no problem. I installed the package org-agenda-property through Melpa but I still have the same problem, it doesn't seem to be related

Org mode table content is difficult to read

Thanks for the elegant theme as it's amazing. Between the font, color scheme, and minimal startup, it's brilliant. I have noticed one readability problem--the content of org mode tables is difficult to see.

Publishing to MELPA

Hello Rugier, I have seen in the past couple of weeks multiple reddit users asking you to publish your theme on MELPA.
I too think that the current method is inhibiting the fruition of your great work to a lot of users.
I would love to help you do that if you'd allow me. I'd change a bit the src then create a pull request creating a new branch, maybe called "Melpa". After that I'll publish it (there's no name, it would only point to the repo and branch)

Can't Tell Which Buffer is Active

Elegant is a quite pretty theme that suffered from some usability issues when I tried it out. Most notably, if the user has multiple buffers open on screen at once there's no way to tell which one is selected and active. I was trying to read through a PDF in one buffer while making notes on it in the other buffer and I kept getting lost, because I would forget which buffer had focus.

If this, and the ability to show a small modeline across the bottom for display-battery-mode or the current org-clock, could be added, this might easily replace my current theme.

Company-mode???!!!

Although the aim to be minimal.
What is the completion mode for this kit?
Company? Or just setting up my abbrev file?

Font weight issue on MacOS Big Sur (11.2)

Hello,

FIrst of all many thanks for sharing this setup!
I'm on a Mac and since upgrading to MacOS Big Sur I can't use Roboto Mono Light anymore, as the informations on font weight now appear to be stripped away. As a result, when different variants of a font are installed, a single weight takes precedence over the others. In the context of elegance.el, only the regular weight of Roboto Mono is used, making the whole text to look like a long headline.
I understand that this is not an issue pertaining to elegance.el, but rather to emacs or Big Sur (actually I've filed a bug report here: https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-02/msg00754.html) , but I was wondering whether you had a workaround in my mind? I've tried different things, but I guess my lack of lisp or emacs skills are the limiting factor here...

Many thanks in advance for your help,

Arnaud

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.