Skip to content

Instantly share code, notes, and snippets.

View mopemope's full-sized avatar
🏠
Working from home

Yutaka Matsubara mopemope

🏠
Working from home
View GitHub Profile
@mopemope
mopemope / aide.el
Created March 10, 2023 09:40
Add openai chat to aide.el
;;; aide.el --- An Emacs front end for GPT APIs like OpenAI -*- lexical-binding: t; -*-
;; Copyright (C) 2021 Junji Zhi
;; Author: Junji Zhi
;; Keywords: gpt-3 openai
;; This program 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 of the License, or
(use-package copilot
:straight (:host github :repo "zerolfx/copilot.el" :files ("dist" "copilot.el"))
:ensure t
:config
(global-unset-key (kbd "TAB"))
(global-set-key (kbd "TAB") (lambda (&optional ARG)
(interactive)
(or (copilot-accept-completion)
(indent-for-tab-command ARG))))
(with-eval-after-load 'company
@mopemope
mopemope / qgmlwy.typ
Created February 5, 2018 06:57
Gtypist lessons for the qgmlwy
G:MENU
*:lesson_0
B:home row-first finger ngrams drill
T:a drill on word pieces including the letters n, a. (29 found)
D:a a a ana ana ana nann nann nann nana nana nana ann ann ann aan aan
:aan nan nan nan nnan nnan nnan nna nna nna n n n anan anan anan anna
:anna anna nan n anna nann anan a ana aan ann nana nnan nna nana aan
:anan nnan ann a anna n nann nan nna ana nana a ann nnan nann anna n
:nan nna ana aan anan
@mopemope
mopemope / lets_split.json
Created November 20, 2017 12:06
Let's split setting
{"version":1,"keyboard":{"keys":[{"id":0,"legend":"","state":{"x":0.5,"y":1,"r":0,"rx":0,"ry":0,"w":1,"h":1,"x2":0,"y2":0,"w2":0,"h2":0,"a":7},"row":0,"col":0,"keycodes":[{"id":"RESET","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]}]},{"id":1,"legend":"Q","state":{"x":1.5,"y":1,"r":0,"rx":0,"ry":0,"w":1,"h":1,"x2":0,"y2":0,"w2":0,"h2":0,"a":4},"row":0,"col":1,"keycodes":[{"id":"KC_Q","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fiel
@mopemope
mopemope / xmobarrc
Created October 19, 2017 10:12
卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍
Config { font = "xft:Ricty:size=13:antialias=true"
, bgColor = "#1c1c1c"
, fgColor = "#FFFFFF"
, alpha = 10
, position = TopSize C 100 16
, lowerOnStart = False
, overrideRedirect = False
, border = NoBorder
, commands = [ Run Network "wlp1s0" ["-t" , "Net:<rx>Kb/s <tx>Kb/s "
, "-L" , "40"
@mopemope
mopemope / xmonad.hs
Created August 24, 2016 23:01
xmonad.hs
--------------------------------------------------------------------------------
-- __ ____ __ _ --
-- \ \/ / \/ | ___ _ __ __ _ __| | --
-- \ /| |\/| |/ _ \| '_ \ / _` |/ _` | --
-- / \| | | | (_) | | | | (_| | (_| | --
-- /_/\_\_| |_|\___/|_| |_|\__,_|\__,_| --
-- --
-------------------------------------------------------------------------------
@mopemope
mopemope / config.fish
Created August 24, 2016 22:59
2016 config.fish
set fish_greeting ""
set -x LC_CTYPE ja_JP.UTF-8
set -x LANG ja_JP.UTF-8
set -x ANSIBLE_NOCOWS 1
set -x EDITOR emacsclient
set -x LOLCOMMITS_FORK true
set -x FZF_DEFAULT_COMMAND 'ag -g ""'
set -x FZF_DEFAULT_OPTS '--ansi --inline-info'
set -x JAVA_HOME /usr/lib/jvm/default
set -x ANT_HOME "$HOME/opt/ant"
@mopemope
mopemope / xmobarrc
Created January 12, 2016 17:18
xmonad
-- -*- mode:haskell -*-
Config { font = "xft:Ricty:size=12"
, bgColor = "#1c1c1c"
, fgColor = "#757575"
, position = TopSize C 100 16
-- , position = Static { xpos = 37 , ypos = 0, width = 1845, height = 18 }
, lowerOnStart = False
, overrideRedirect = False
, border = NoBorder
, borderColor = "#26a69a"
@mopemope
mopemope / init.el
Created January 12, 2016 17:07
emacs init.el
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(add-to-list 'package-archives
'("gnu" . "http://elpa.gnu.org/packages/") t)
(package-initialize)
@mopemope
mopemope / config.fish
Last active June 23, 2022 11:37
config.fish
# Path to Oh My Fish install.
set -gx OMF_PATH /home/ma2/.local/share/omf
# Customize Oh My Fish configuration path.
#set -gx OMF_CONFIG /home/ma2/.config/omf
set fish_plugins pbcopy
set fish_greeting ""
set -x LC_CTYPE ja_JP.UTF-8