New answers tagged

0

When you add the second bit of code into your init.el: (unless (derived-mode-p 'term-mode) (setq scroll-margin 3)) and that code gets executed, it asks: "Is the mode of the current buffer a derived mode of term-mode?" - the answer is "No", since the current buffer is *scratch*, the major mode is lisp-interaction-mode and that is not a ...


1

You can figure this one out on your own by using C-x C-e to evaluate the individual forms. For example if you place point after system-name and hit C-x C-e, it will display your hostname (say, "kimura") in the echo area. If you reposition point after (assoc system-name virtualenv-byhost), it will display ("kimura" . "~/.virtualenvs/...


1

You should use eval-after-load - the function will not be defined if the package is not loaded, so checking whether it's installed does not help and checking whether the function is defined (the fboundp stuff) will not load it. BTW, ivy should be quoted in the eval-after-load call: (eval-after-load 'ivy (global-set-key (kbd "C-x b") #'ivy-...


Top 50 recent answers are included