Skip to content

Instantly share code, notes, and snippets.

View ianyepan's full-sized avatar
💭
in the cloud...

Ian Y.E. Pan ianyepan

💭
in the cloud...
View GitHub Profile
@ld100
ld100 / ArchLinuxWSL2.md
Last active May 23, 2024 13:20
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Obsolete notice

This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.
@sebastiencs
sebastiencs / company-yasnippet.el
Created June 15, 2017 23:45
company with yasnippet
;; With this code, yasnippet will expand the snippet if company didn't complete the word
;; replace company-complete-common with company-complete if you're using it
(advice-add 'company-complete-common :before (lambda () (setq my-company-point (point))))
(advice-add 'company-complete-common :after (lambda ()
(when (equal my-company-point (point))
(yas-expand))))