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

how set .spacemacs to run [SPC T M] when the program running? #6851

Closed
arstum opened this issue Aug 18, 2016 · 5 comments
Closed

how set .spacemacs to run [SPC T M] when the program running? #6851

arstum opened this issue Aug 18, 2016 · 5 comments

Comments

@arstum
Copy link

arstum commented Aug 18, 2016

I like use spacemacs with full screen.
I must enter [SPC T M] after run the spacemacs everytime.
This is the wrong way to lifting efficiency.
Who can tell me to how set .spacemacs to run [SPC T M] when the program running.

@lsytj0413
Copy link

Hav you try use the varible dotspacemacs-fullscreen-at-startup, dotspacemacs-maximized-at-startup in the .spacemacs file?

@TheBB
Copy link
Collaborator

TheBB commented Aug 18, 2016

As @lsytj0413 says the correct way is to use those variables.

You can check what function is run by a keybinding using SPC h d k. Then you can run that function in dotspacemacs/user-config.

SPC T M runs the command spacemacs/toggle-maximize-frame, which is an
interactive Lisp function in `keybindings.el'.

Therefore:

(spacmacs/toggle-maximize-frame)

Or:

(spacemacs/toggle-maximize-frame-on)

@arstum
Copy link
Author

arstum commented Aug 18, 2016

@TheBB Youre the better way,but it cant take effect。

in the .spacemacs:
(defun dotspacemacs/user-config (
(spacemacs/toggle-maximize-frame-on)
)
"Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place your code here."
)

restart but no change.

@TheBB
Copy link
Collaborator

TheBB commented Aug 18, 2016

That isn't valid elisp.

(defun dotspacemacs/user-config ()
  "Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place your code here."
  (spacemacs/toggle-maximize-frame-on)
  )

@arstum
Copy link
Author

arstum commented Aug 18, 2016

It's work.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants