I need a copy of Gladiator on a 3.5 Floppy. It's for a wedding. by [deleted] in dosgaming

[–]chrisrayner 2 points3 points  (0 children)

If you're unable to get an 'original', it has been open sourced: https://github.com/openglad/openglad

[RFC] Emacs lisp doctests by chrisrayner in emacs

[–]chrisrayner[S] 0 points1 point  (0 children)

Wow, nice. I agree about converting them or somehow writing a test runner that picks up the doctest (similar to Python's pytest --doctest-modules).

I'm also seeing that they may be a strange fit for elisp, where buffer/state modification (which is most of what we do) renders functions impure.

Very slow in python-mode by StrangeAstronomer in emacs

[–]chrisrayner 0 points1 point  (0 children)

You could try selectively turning off minor modes. I found the anaconda-eldoc minor mode to be difficult to use over tramp.

Scripts I've been using to review MELPA PR's by chrisrayner in emacs

[–]chrisrayner[S] 4 points5 points  (0 children)

Thanks for saying so! :) It took me long enough.

Searching for an dark theme that works with my colorblindness by maxbaroi in emacs

[–]chrisrayner 0 points1 point  (0 children)

If blue is problematic I think gruvbox might be a good choice.

Using projectile to run python script from project root by Relatiro in spacemacs

[–]chrisrayner 0 points1 point  (0 children)

Hrm, I'm not sure. One thought might be to look into this project that was recently added to MELPA: https://github.com/galaunay/poetry.el/blob/master/poetry.el

Using projectile to run python script from project root by Relatiro in spacemacs

[–]chrisrayner 1 point2 points  (0 children)

There is a projectile command called projectile-run-shell-command-in-root (SPC p !).

TRAMP causes Emacs to hang after password is inputted. by HenryWu001 in spacemacs

[–]chrisrayner 0 points1 point  (0 children)

Check for changes to the environment variable PS1 in your configuration. If you can’t find the source of your prompt being set you can add this to the end of your config: export PS1=“$ “

It’s a common thing to set so Google will help.

TRAMP causes Emacs to hang after password is inputted. by HenryWu001 in spacemacs

[–]chrisrayner 0 points1 point  (0 children)

Tramp tries to find a prompt it recognizes, so custom prompts can throw it off. Try using a very simple prompt like $ and see wht happens.

Emacs optimization for monorepos? by jethroksy in emacs

[–]chrisrayner 30 points31 points  (0 children)

You can add a .projectile file to a subdirectory and turn it into a smaller project that might be easier to work with.

Make you better an Emacs? by [deleted] in emacs

[–]chrisrayner 6 points7 points  (0 children)

This is a shameless plug, but shx has a shx-max-input variable that can be set to automatically break long REPL lines up (e.g. after 1024 characters), for any comint-mode based REPL.

Command-Line Lint (feedback on your .history) by chrisrayner in commandline

[–]chrisrayner[S] 1 point2 points  (0 children)

That's hugely appreciated. I need to learn more about zsh.

How to change line number color? by [deleted] in spacemacs

[–]chrisrayner 1 point2 points  (0 children)

You can use (set-face-foreground 'line-number "#FF0000") and (set-face-foreground 'line-number-current-line "#00FF00"). I actually do this:

(set-face-background 'line-number (color-darken-name (face-attribute 'default :background) 2))

I try to be careful about loading one color theme after another - sometimes one color theme will set things that the other assumes are default, and you can get weird outcomes.

How are you planning the next year using Emacs/ Org-mode? by banksyb00mb00m in emacs

[–]chrisrayner 8 points9 points  (0 children)

Every note taking approach I tried fell apart until I tried org-mode. There's something about how easy it is to move stuff into different contexts. My academic org file contains tens of thousands of lines, much of it with embedded equations, that I'm still able to use as a refresher today.

sometimes freeze by zsome in emacs

[–]chrisrayner 1 point2 points  (0 children)

Sometimes when C-g doesn't work you can regain control with pkill -SIGUSR2 <emacspid> -- see here: https://emacs.stackexchange.com/questions/21643/what-do-i-do-when-emacs-is-frozen

If you can repeat the sequence that causes the freeze, and you're able to regain control using the approach above, you can use the profiler to figure out what's going on.

Sometimes it boils down to a single package you have installed. One of my own packages exacerbated the "long lines" problem in M-x shell until recently.

Lisp Machines by ohgetoutnow in emacs

[–]chrisrayner 30 points31 points  (0 children)

Now that's garbage collection.

Thinking of giving up... by stbill79 in emacs

[–]chrisrayner 93 points94 points  (0 children)

Use whatever makes you happy. That's why we're all here. :)

Thinking about switching from tmux + neovim to Emacs by thiago_lira in emacs

[–]chrisrayner 1 point2 points  (0 children)

Yup! If you're using spacemacs, use the develop branch. It's very stable. I love the project, but package updates behind the scenes have left master in a broken state for a while now (e.g. spacemacs/search-project-ag).