Skip to content

Instantly share code, notes, and snippets.

@c4droid369
c4droid369 / org-zettel.el
Created May 30, 2025 09:03
My homebrew implementation for zettelkasten in org-mode
;;; org-zettel --- Simple zettelkasten implement in Org-mode -*- lexical-binding: t -*-
;; Copyright (C) 2025 c4droid
;; Author: c4droid <[email protected]>
;; URL: https://codeberg.org/c4dr01d/org-zettel
;; Version: 0.1
;; Package-Requires: ((emacs "27.1"))
;; Keywords: org
@zilongshanren
zilongshanren / minimal-emacs.txt
Last active September 30, 2024 01:27
极简emacs配置
(setq inhibit-splash-screen t)
(setq-default cursor-type 'bar)
(setq initial-frame-alist (quote ((fullscreen . maximized))))
(setq package-check-signature nil)
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
@CypherpunkSamurai
CypherpunkSamurai / miniconda_portable.ps1
Last active October 4, 2025 22:07
Miniconda Portable Installer for Windows
# Miniconda Portable Installer
# Author: Rakesh Chowdhury @ CypherpunkSamurai
# https://gist.github.com/CypherpunkSamurai/359503fa3a23ea5e493c5eeeaf2de8d4
# Get Miniconda
Invoke-WebRequest -Uri "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" -OutFile "miniconda.exe"
# Extract the Miniconda package
.\miniconda.exe /InstallationType=JustMe /AddToPath=0 /S /RegisterPython=0 /NoRegistry=1 /NoScripts=1 /NoShortcuts=1 /D=$PWD\conda_install
# Wait
@jbester
jbester / init.el
Last active April 19, 2025 01:36
Custom Tabline next/prev
(defun custom-tab-line-switch-to-next-tab (&optional mouse-event)
"Switch to the next tab - cycle back to the start at the end.
Its effect is the same as using the `next-buffer' command
(\\[next-buffer]). with the exception it will not open a non-visible buffer"
(interactive (list last-nonmenu-event))
(let ((window (and (listp mouse-event) (posn-window (event-start mouse-event)))))
(with-selected-window (or window (selected-window))
(let* ((tabs (funcall tab-line-tabs-function))
(tab-buffers (mapcar (lambda (tab) (if (bufferp tab) tab (cdr (assq 'buffer tab)))) tabs))
(num-tabs (length tab-buffers))
@include-yy
include-yy / init.el
Last active December 5, 2025 09:06
include-yy's emacs config file
;;; init.el --- include-yy's emacs config -*- lexical-binding:t;no-byte-compile:t; -*-
;; Copyright (C) 2023 include-yy <[email protected]>
;; Author: include-yy <[email protected]>
;; Created: 17 Jun 2023
;; Version: 0.1
;; Keywords: config
;; URL: https://gist.github.com/include-yy/e70dcbfc1a80403814d0b7a7357971d9
@Gavinok
Gavinok / chatgpt.el
Last active September 4, 2025 07:00
chatgpt client for emacs WIP (Now Async!)
;;; chatgpt.el --- Simple ChatGPT frontend for Emacs -*- lexical-binding: t -*-
;; Copyright (C) Gavin Jaeger-Freeborn
;; This package is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;; This package is distributed in the hope that it will be useful,
@doolio
doolio / .dir-locals.el
Last active September 8, 2024 13:43
.dir-locals.el for use with the Emacs Eglot LSP client and python-lsp-server (pylsp) LSP server
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
;;; Commentary:
;; .dir-locals.el for use with the Emacs Eglot LSP client and
;; python-lsp-server (pylsp) LSP server v1.10.0.
;; Default values in accordance with
;; https://github.com/python-lsp/python-lsp-server/blob/v1.10.0/CONFIGURATION.md
@karthink
karthink / repeat-mode-config.el
Created July 3, 2022 10:59
repeat-mode configuration with which-key for Emacs 28
(use-package repeat
:if (version< "28.0" emacs-version)
:bind ("H-z" . repeat)
:hook (after-init . my/repeat-mode)
:config
(defun my/repeat-mode ()
(let ((inhibit-message t)
(message-log-max nil))
(repeat-mode)))
@llinfeng
llinfeng / eink_clean.ahk
Last active December 14, 2023 04:09
Force full-screen refresh on e-ink monitors
#SingleInstance, force ; Allow only one instance of this script to be running.
#Persistent ; To stop the script from exiting.
; Here, press F1 to trigger the black/white flash
F1::
; Source: https://superuser.com/questions/662264/i-would-like-to-make-the-screen-go-black-every-8-seconds-how
Gui, Color, 000000
Gui, Show, x-5000 y-20 w8000 h8000
sleep 333
Gui, Color, FFFFFF
@twlz0ne
twlz0ne / emacs-pager
Last active May 22, 2022 09:08
Emacs as Pager
#!/usr/bin/env bash
set -e
# Emacs as pager
#
# Author: [email protected]
# Created: 2021-06-06 16.08.51
# Version: 0.1
#
# Installation: