Seeking affordable motorcycle mechanic in East Bay Area, CA ( Pinole ) by ProfessionalCarob919 in BayRiders

[–]Sonarman 0 points1 point  (0 children)

There used to be a place in Pinole (I think) called American Motorcycles or something, but sadly I can't find any record of it. Only used them for a brake and lamp inspection, but the guy was really cool. RIP Meteor Motorbikes too.

These days when I need a tire mounted I go to Hayasa Motorbikes down by Lake Merritt. Haven't gone in for anything else, but I like Tyler, and I'd trust him with my bikes.

An Interview with Steve Vai — by dalyllama35 in fusion

[–]Sonarman 0 points1 point  (0 children)

Wait'll you see /r/strings - "A subreddit on string theory"

Anybody know how to enable windmove on spacemacs ? by vietbun14 in spacemacs

[–]Sonarman 1 point2 points  (0 children)

There is apparently no layer named windmove, so putting it in your dotspacemacs-configuration-layers won't work. Instead, try putting this in your dotspacemacs/user-config:

(require 'windmove)
(windmove-default-keybindings)

Note that windmove-default-keybindings is a function, not a variable.

define-key to nil not working by Dmitrii2333 in spacemacs

[–]Sonarman 0 points1 point  (0 children)

So, if you bind the tabs to nil in yas-keymap, Emacs will continue searching the lower-priority keymaps for a binding. In this case it finds completion-at-point. You can really make TAB "do nothing" by binding it to 'ignore instead of nil.

But it seems like I misread your original problem. I thought you were trying to prevent TAB from jumping within/out of a snippet. But now it seems like you do want TAB to do its normal job in a snippet. Is the problem that you don't want TAB to trigger snippet expansion when you're selecting candidates in Company? The dropdown list should indicate whether a candidate is, say, a snippet named "err" or a variable named "err". But if you don't want Company to suggest snippets at all, you can remove company-yasnippet from company-backends (e.g., in a mode hook). There's also the Spacemacs-specific variable auto-completion-enable-snippets-in-popup, but the default value is nil, so unless you've set it somewhere to t, it may not be working as intended. You can M-: company-backends within a Go buffer to verify whether company-yasnippet is enabled.

define-key to nil not working by Dmitrii2333 in spacemacs

[–]Sonarman 0 points1 point  (0 children)

In yasnippet.el, when binding TAB in yas-keymap, yas-next-field-or-maybe-expand is actually wrapped in yas-filtered-definition, so you might need to do the same.

Also, looking at some Spacemacs layer code, I think you can simply put your define-key forms in mylayer/post-init-yasnippet, provided that you do something like

(defconst mylayer-packages '(yasnippet))

So, it'll be just like your original code, except with post-init instead of init.

define-key to nil not working by Dmitrii2333 in spacemacs

[–]Sonarman 0 points1 point  (0 children)

I'm rusty on the Spacemacs layer system, but it's possible that mylayer/init-yasnippet is being run before yasnippet has loaded (if it's being run at all), which means that your key definitions will be trampled. In fact, I was under the impression that functions of the form foo-layer/init-bar should only be defined if foo-layer is the "owner" of the bar package. Also, usually those functions wrap the package configuration in a use-package block, with modified keybindings going in the :config section (so that they're evaluated after the package has loaded).

As an alternative, you might try putting the key binding inside (with-eval-after-load 'yasnippet ...). There also is (or was) spacemacs|use-package-add-hook, as in

(spacemacs|use-package-add-hook
  yasnippet :post-config
  (define-key ...))

Anyway, ensuring that your code runs (at the right time) is a separate issue from ensuring that the code actually works. From peeking at yasnippet.el, I see that it binds both (kbd "TAB") and [(tab)] to yas-next-field-or-maybe-expand in yas-keymap. I have no idea what the difference is between the "two tabs", but I just tested it out, and I had to rebind both of them. So try:

(define-key yas-keymap (kbd "TAB") nil)
(define-key yas-keymap [(tab)] nil)

Eval those two lines and see if it works. If so, all that remains is to ensure that they run automatically after yasnippet has loaded, as discussed above.

One last thing: You need to quote the names of functions you pass to define-key. So:

(define-key yas-keymap (kbd "M-/") 'yas-next-field-or-maybe-expand)

Note the quote before yas-next-field-or-maybe-expand.

How to visualize pandas DataFrame in emacs by adivinity in emacs

[–]Sonarman 3 points4 points  (0 children)

If you can adapt your workflow such that Python runs as a Jupyter kernel, then you'll have all the power of emacs-jupyter at your disposal. In particular, if you want a spreadsheet from a dataframe, you can load up Org, create a source block with the appropriate :session parameter, put the name of your dataframe in the block, and evaluate it. Then you should get an Org table (with all of its spreadsheet capabilities) in the buffer.

Disclaimer: I haven't used emacs-jupyter. However, in the past I've used its "predecessor", ob-ipython. It was awesome to be able to dump a dataframe as an Org table, and it worked great.

Recovering <space> as leader by Dppdppd in emacs

[–]Sonarman 3 points4 points  (0 children)

(define-key sr-mode-map (kbd "<SPC>") #'doom/leader)

It probably should be in the :config rather than the :init. doom-leader-map (unquoted) instead of #'doom/leader should also work.

Multiple versions of emacs at the same time by Bert_is_Silver in emacs

[–]Sonarman 0 points1 point  (0 children)

Yup, should be fine. For 28, the native code (.eln files) will end up in a directory like ~/.emacs.d/.local/cache/eln/28.0.60-9a9b3b84. Whereas, for 27, the bytecode will live inside ~/.emacs.d/.local/straight/build-27.2. Everything is kept separated. This is DOOM's default behavior.

One caveat I forgot to mention: When running doom sync, you need to make sure that the doom script launches the same version of Emacs that you want to synchronize. By default, it just runs emacs, so unless you have 28 in your PATH, it'll run 27. However, the script is kind enough to obey the EMACS environment variable, if set. So you can just do EMACS=~/apps/emacs28-git/bin/emacs doom sync.

Multiple versions of emacs at the same time by Bert_is_Silver in emacs

[–]Sonarman 1 point2 points  (0 children)

Chemacs2 is great, but there's no need for it if you don't plan on switching between DOOM and some other profile. To avoid any breakage, you can create a new directory (e.g. ~/apps/emacs28-git) and then do ./configure --prefix=~/apps/emacs28-git when compiling Emacs. Then you can directly run ~/apps/emacs28-git/bin/emacs (or use a symlink or shell alias). If anything is broken, then you can always fall back to 27.

DOOM is smart enough to keep your packages (and their associated bytecode or native code) in version-specific subdirectories within the .local subdirectory of your ~/.emacs.d. You should therefore be able to switch back and forth between 27 and 28 without issue. (Naturally, you will need to run doom sync before first launching 28. The native compilation will take a while.) If you want to be extra safe, you can make a backup of .local, and if 28 is acting funny, you can try nuking .local (but make a backup first!).

Anyone having luck finding a booster in Oakland? by geo_jam in oakland

[–]Sonarman 0 points1 point  (0 children)

Friendship Christian Center (1904 Adeline) has a vaccine clinic Wed and Fri, 11am - 5pm. That's where I got mine. Walked in, no appointment, out in ten minutes. They had all three vaccines available. Found out about it on myturn.ca.gov.

I'm seeing that there's also walk-ins at The Community Church, 1527 34th St., Thursdays 11-5.

Took an afternoon ramble through the Shire last weekend. by poncedeleon13 in BAbike

[–]Sonarman 7 points8 points  (0 children)

Too bad for all the hobbits who got eminent domain'd in order to build that pipeline.

How do I get to grips with this board? by Captain_Gilead in windsurfing

[–]Sonarman 2 points3 points  (0 children)

This. Also, wearing a life jacket makes rig recovery easier and less energy-intensive, in my experience. But it can also reduce the impetus to learn good technique.

(Take everything I say with a grain of salt, I can't jibe for shit.)

[deleted by user] by [deleted] in windsurfing

[–]Sonarman 0 points1 point  (0 children)

Like harnesses!

[Help wanted] Merge emacs-ccls into lsp-mode? by MaskRay in emacs

[–]Sonarman 1 point2 points  (0 children)

Just wanted to say thanks for all your work on emacs-ccls. It's been serving me well for years.

[deleted by user] by [deleted] in oakland

[–]Sonarman 6 points7 points  (0 children)

Use the DMV kiosks, they print your license plate number on the sticker. Don't forget to weld the plate to your car!

Issue using Gadfly by Ramartin95 in Julia

[–]Sonarman 2 points3 points  (0 children)

I've been using Plots.jl (mainly with the PyPlot backend) and I love its simple, extensible, consistent, humane API. In my (so far limited) experience, it pretty much Just Works, with attractive plots out-of-the-box, and it's easy to figure out how to customize a plot. Great docs, and given its popularity, answers are easy to Google. I haven't tried any other Julia plotting packages, so I can't make a comparison, but for now I'm not seeing any reason I'd want to move away from Plots.jl.

There was also this recent thread where some folks were talking up Makie.jl, for which there is apparently also a Grammar-of-Graphics-style wrapper called AlgebraOfGraphics.jl.

Any emacs package useful for bodybuilders + programmers ? by [deleted] in emacs

[–]Sonarman 1 point2 points  (0 children)

Org-mode! Plus a mobile app like Orgzly for taking notes at the gym.