Skip to content

Instantly share code, notes, and snippets.

View fuxialexander's full-sized avatar

Xi "Alexander" Fu fuxialexander

View GitHub Profile
@fuxialexander
fuxialexander / gist:67ce2d87543a8ec8f76a4868ea93e5b7
Created August 13, 2019 17:27
brew emacs-plus formula with xwidget
class EmacsPlus < Formula
desc "GNU Emacs text editor"
homepage "https://www.gnu.org/software/emacs/"
url "https://ftp.gnu.org/gnu/emacs/emacs-26.2.tar.xz"
mirror "https://ftpmirror.gnu.org/emacs/emacs-26.2.tar.xz"
sha256 "151ce69dbe5b809d4492ffae4a4b153b2778459de6deb26f35691e1281a9c58e"
bottle do
root_url "https://dl.bintray.com/d12frosted/emacs-plus"
rebuild 2
@fuxialexander
fuxialexander / company-childframe.el
Last active March 12, 2021 15:59
company-childframe.el [adapted from @tumashu for mac os (GNU NS-port HEAD)]
;;; company-childframe.el --- Use a real ppup to show company candidates
;;; Commentary:
;;
;;; Code:
(require 'company)
(defvar company-childframe-child-frame nil)
@fuxialexander
fuxialexander / org-ref-skim.el
Last active April 6, 2023 11:48
Integration between Org-ref and Skim.app [Skim Annotation <-> Org Bidirectional Jump]
(setq org-capture-templates (quote (("SA" "Skim Annotation" entry
(file+function org-ref-bibliography-notes my-org-move-point-to-capture-skim-annotation)
"* %^{Logging for...} :skim_annotation:read:literature:
:PROPERTIES:
:Created: %U
:CITE: cite:%(my-as-get-skim-bibtex-key)
:SKIM_NOTE: %(my-org-mac-skim-get-page)
:SKIM_PAGE: %(my-as-get-skim-page)
:END:
%i