Skip to content

Instantly share code, notes, and snippets.

@QiangF
QiangF / emacs-guix-setup.org
Created July 18, 2025 09:22 — forked from noah-evans/emacs-guix-setup.org
Using the guix package manager for a cross-distro, reproducible emacs environment.

Using the guix package manager for a cross-distro, reproducible emacs environment

GNU guix is a functional package manager, that can be installed on any distribution and used to manage packages, including emacs packages.

How is this different from straight.el

straight.el is also a functional package manager, but unlike guix, it only manages emacs packages, while with guix you can include external programs that you will make use of from emacs (like ripgrep), emacs

@QiangF
QiangF / org-zettel.el
Created June 6, 2025 14:19 — forked from c4droid369/org-zettel.el
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
@QiangF
QiangF / AdvancedWindowSnap.ahk
Created January 2, 2025 02:28 — forked from dusty-phillips/AdvancedWindowSnap.ahk
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
/**
* Advanced Window Snap (Extended
* Snaps the Active Window to one of nine different window positions.
*
* @Editing author Jarrett Urech
* @Original author Andrew Moore <[email protected]>
* @version 2.1
*
**/
@QiangF
QiangF / openradioss.dockerfile
Created December 17, 2024 02:55 — forked from edp8489/openradioss.dockerfile
OpenRadioss Dockerfile
FROM rockylinux:9
# Install development tools and dependencies
RUN dnf groupinstall -y "Development Tools" && \
dnf install -y \
gcc gcc-gfortran gcc-c++ make cmake perl git-lfs \
wget git patch diffutils libxcrypt-compat \
which python
# Download and extract OpenMPI source code
@QiangF
QiangF / fmg-biff.el
Created April 21, 2024 01:01 — forked from fgilham/fmg-biff.el
Emacs Wanderlust mail notifier
;;; -*- Mode: EMACS-LISP -*-
;;; A fancy notify hook for Wanderlust.
;;;
;;; Time-stamp: <2019-09-26 15:45:18 fred>
;;;
;;;; Usage:
;;;
;;; 1. Set the variable wl-biff-check-folder-list to the list of
@QiangF
QiangF / repeat-mode-config.el
Created April 11, 2024 06:01 — forked from karthink/repeat-mode-config.el
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)))
@QiangF
QiangF / hlwm.el
Created April 7, 2024 09:53 — forked from wdkrnls/hlwm.el
hlwm.el: control herbstluftwm from emacs
;;;; HLWM convience tools
;; author: Kyle Andrews
;; license: GPL V3 or later
(defun bash-path ()
"Return all the executables in the path according to bash.
This does not work as well as dmenu-path since it includes bash
reserved words in the result."
@QiangF
QiangF / hideshow-config.el
Created February 10, 2024 06:46 — forked from dsjt/hideshow-config.el
hideshow config for python
(require 'hideshow)
(define-key hs-minor-mode-map (kbd "C-^") 'hs-toggle-hiding)
(add-hook 'python-mode-hook 'hs-minor-mode)
(defun display-code-line-counts (ov)
(when (eq 'code (overlay-get ov 'hs))
(overlay-put ov 'display
(format " ... [%d]"
(count-lines (overlay-start ov)
(overlay-end ov))))
(overlay-put ov 'face '(:foreground "yellow green"))))
@QiangF
QiangF / init.el
Created January 1, 2024 08:37 — forked from include-yy/init.el
include-yy's emacs config file
;;; init.el --- include-yy's emacs config -*- lexical-binding: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
@QiangF
QiangF / .dir-locals.el
Created January 1, 2024 02:46 — forked from doolio/.dir-locals.el
.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.9.0.
;; Default values in accordance with
;; https://github.com/python-lsp/python-lsp-server/blob/v1.9.0/CONFIGURATION.md