Skip to content
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

MacOS options do not persist after closing the app. #41

Closed
ryn1x opened this issue Jul 4, 2017 · 11 comments
Closed

MacOS options do not persist after closing the app. #41

ryn1x opened this issue Jul 4, 2017 · 11 comments
Labels
elisp Problems related to the elisp code shipped with Portacle

Comments

@ryn1x
Copy link

ryn1x commented Jul 4, 2017

MacOS options do not persist after closing the app. (i.e. changing the theme or font size)

@Shinmera
Copy link
Member

Shinmera commented Jul 4, 2017

I don't understand how theme or font size are "Mac OS options". If you are talking about the Emacs commands to change its theme or frame font, then that's just how Emacs works. If you want to persist a change, put it into the config/user.el file as instructed by the help buffer.

@ryn1x
Copy link
Author

ryn1x commented Jul 4, 2017

I think it may be the way emacs is bundled into the portacle.app on macOS. I have no problems with standard emacs. If I change and save any settings from the tool bar or from the customize emacs "gui" they do not persist. I did have success changing my font and theme by modifying the bundled emacs-init.el though...

@Shinmera Shinmera added the elisp Problems related to the elisp code shipped with Portacle label Jul 5, 2017
@ptrckqnln
Copy link

Unfortunately I'm having this issue with the latest version.

@Shinmera Shinmera reopened this Aug 4, 2018
@pawel-dubiel
Copy link

I have the same problem. Saving theme or font through the GUI on MacOS doesn't work. ( user.el is not modified )

Interesting is that when I use M-x customize-face
the new settings are saved to user.el but on the restart still can't see new settings.

@joebentley
Copy link

I'm having the same issue, I have to manually run the custom-set-faces command from user.el for the change to take place

@Shinmera
Copy link
Member

Shinmera commented Aug 7, 2018

The font thingy is due to the way Portacle sets its own font and the way emacs' customisations take precedence. If you use something like

(add-to-list 'default-frame-alist '(font . "-GOOG-Noto Mono-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1"))

in your user.el it should work as expected. The font spec used is described here. The 14 is the base size, and GOOG-Noto Mono is the font family. Adapt that as you see fit.

@Shinmera
Copy link
Member

Shinmera commented Aug 7, 2018

Actually now that I look at the code I think I see the problem. Portacle's default window customisations are applied after the user file is loaded. This was changed in some relatively recent patch, I think.

Shinmera added a commit to portacle/emacsd that referenced this issue Aug 7, 2018
… file is loaded to allow the user to customise window looks.

Should help with portacle/portacle#41
@joebentley
Copy link

Yes I was thinking that, since the correct font size kind of briefly flashes up before it is reverted to the incorrect setting

@pawel-dubiel
Copy link

pawel-dubiel commented Aug 11, 2018

I am new to emacs and I had a problem to make this work, but finally, it works for me.

  • applied Shinmera path portacle/emacsd@b21ec3a
  • (add-to-list 'default-frame-alist '(font . "Noto Mono-13:antialias=subpixel")) in user.el
  • removed portacle-user.elc and remove portacle.elc
  • then open portacle and recompile everything withC-u 0 M-x byte-recompile-directory

It could be that one of these steps wasn't required, but now it works for me.

@Shinmera
Copy link
Member

Instead of manually applying the patch, removing the elcs, and byte-recompiling, you could've also just done M-x portacle-update

@pawel-dubiel
Copy link

@Shinmera Thanks, that's really good trick :) I'should have scanned for such commands first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
elisp Problems related to the elisp code shipped with Portacle
Projects
None yet
Development

No branches or pull requests

5 participants