Skip to content

Instantly share code, notes, and snippets.

@LJimmy9
LJimmy9 / initttt.el
Last active September 1, 2025 04:12
; Useful things to try
; M-s o (occur buffer) e to edit while in buffer
; TODO: Learn to use for entire directory
; M-@ Expand selection
(use-package emacs
:ensure nil
:init
@LJimmy9
LJimmy9 / wezterm.lua
Last active June 3, 2025 22:23
wezterm basic config
-- ~/.config/wezterm/wezterm.lua
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
config.default_prog = { 'bash' }
config.default_cwd = wezterm.home_dir
@LJimmy9
LJimmy9 / .ideavimrc
Created April 14, 2025 15:56
ideavimrc for jetbrains ides
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
"" Map \r to the Reformat Code action
"map \r <Action>(ReformatCode)
"" Map <leader>d to start debug
"map <leader>d <Action>(Debug)
"" Map \b to toggle the breakpoint on the current line
"map \b <Action>(ToggleLineBreakpoint)
@LJimmy9
LJimmy9 / initttt.lua
Last active August 29, 2025 02:52
lua
vim.o.shell = "bash"
vim.opt.fillchars = {
horiz = '═',
horizup = '╩',
horizdown = '╦',
vert = '║',
vertleft = '╣',
vertright = '╠',
verthoriz = '╬',
@LJimmy9
LJimmy9 / layout.xml
Last active January 13, 2025 05:03
unexpected-keyboard-layout
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<keyboard bottom_row="false" name="QWERTY" script="latin">
<row>
<key width="1.2" key0="q" key1="!" key2="1" key3="`" key4="~"/>
<key width="1.2" key0="w" key1="\@" key2="2"/>
<key width="1.2" key0="e" key1="\#" key2="3"/>
<key width="1.2" key0="r" key1="$" key2="4"/>
<key width="1.2" key0="t" key1="%" key2="5"/>
<key width="1.2" key0="y" key1="^" key2="6"/>
<key width="1.2" key0="u" key1="&amp;" key2="7"/>
@LJimmy9
LJimmy9 / init.el
Created January 10, 2025 22:35
another-init
;; early-init.el
;; (setq package-enable-at-startup nil
;; inhibit-startup-message t
;; frame-resize-pixelwise t ; fine resize
;; package-native-compile t) ; native compile packages
;; (scroll-bar-mode -1) ; disable scrollbar
;; (tool-bar-mode -1) ; disable toolbar
;; (tooltip-mode -1) ; disable tooltips
;; (set-fringe-mode 10) ; give some breathing room
;; (menu-bar-mode -1) ; disable menubar
@LJimmy9
LJimmy9 / init.lua
Created December 17, 2024 16:51
init.lua
vim.opt.clipboard = "unnamedplus"
vim.o.relativenumber = true
vim.o.breakindent = true
vim.o.textwidth = 80
vim.o.cursorline = true
vim.opt.expandtab = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.swapfile = false
@LJimmy9
LJimmy9 / init-v2.org
Last active December 12, 2024 04:48
init-v2.org
#+PROPERTY: header-args :tangle init.el :results none :async
#+AUTHOR: Jimmy Lau
#+DATE:<2024-10-25 Tue 10:43>
#+SETUPFILE: ~/org/templates/latex-standard.setup
#+LaTeX_CLASS: article
#+LaTeX_CLASS_OPTIONS: [letterpaper]
:REVEAL_PROPERTIES:
#+REVEAL_ROOT: https://cdn.jsdelivr.net/npm/reveal.js
#+REVEAL_THEME: serif
:END:
@LJimmy9
LJimmy9 / latex-standard.setup
Last active November 18, 2024 15:54
latex-standard.setup
#+LaTeX_CLASS: org-plain-latex
#+LaTeX_CLASS_OPTIONS: [letterpaper, 11pt]
#+LATEX_HEADER: \usepackage{lmodern} % Ensures we have the right font
#+LATEX_HEADER: \usepackage[T1]{fontenc}
#+LATEX_HEADER: \usepackage[AUTO]{inputenc}
#+LATEX_HEADER: \usepackage{graphicx}
#+LATEX_HEADER: \usepackage{amsmath, amsthm, amssymb}
#+LATEX_HEADER: \usepackage[table, xcdraw]{xcolor}
@LJimmy9
LJimmy9 / init.org
Last active October 26, 2024 01:06
init.org
#+AUTHOR: Jimmy Lau
#+DATE:<2024-10-08 Tue 10:43>
#+SETUPFILE: ~/.emacs.d/org/templates/latex-standard.setup
#+LaTeX_CLASS: article
#+LaTeX_CLASS_OPTIONS: [letterpaper]
:REVEAL_PROPERTIES:
#+REVEAL_ROOT: https://cdn.jsdelivr.net/npm/reveal.js
#+REVEAL_THEME: serif
:END:
#+OPTIONS: timestamp:nil toc:1 num:nil