• 0 Posts
  • 5 Comments
Joined 1 year ago
cake
Cake day: October 12th, 2023

help-circle



  • We’re expecting RET to perform minibuffer-exit. That’s the default keybinding from minibuffer-mode-map. Perhaps another keybinding (from another minor-mode keymap, say) is overriding the minibuffer’s RET binding.

    it just goes to the next line

    Hmmm, this sounds familiar. I had this problem last year.

    Do you have Paredit mode enabled in the minibuffer? (You might look at the value of eval-expression-minibuffer-setup-hook.)

    The paredit-mode-map has the paredit-RET command bound to RET instead. This command usually puts a new line in place.


  • For variables you created (i.e. named) yourself, you can also use defvar, which lets you give it a docstring.

    To set a different value according to the OS, you can conditionally set the value based on a system-type.

        (defvar fuzzbomb/startup-theme 'modus-vivendi-tinted
            "The theme to enable during startup.
    
        This variable should be set before the first call to `load-theme' in
    `init.el'.")
    
          (if (eq system-type 'windows-nt)
              (setq fuzzbomb/startup-theme 'ef-maris-light))