Skip to content

Instantly share code, notes, and snippets.

@masudahiroto
masudahiroto / init.el
Created May 20, 2024 00:22
Emacs setting file written with gpt-4o
;; パッケージ管理を初期化
(require 'package)
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
;; 使用するパッケージのインストール
@masudahiroto
masudahiroto / main.md
Created January 1, 2023 08:36
pre-commitを学習した際の覚え書き。

pre-commitの学習メモ

pre-commitとは

Git hookを簡単に管理するプログラム。 gitリポジトリでcommitやpush時に自動で処理を行うことができる。

インストール

pythonライブラリなので、pipでインストールできる。

pip install pre-commit