- orakuin
- AG-デスクトップレコーダー
| // userChrome.css有効化 | |
| user_pref('toolkit.legacyUserProfileCustomizations.stylesheets', true); | |
| // ブラウザデバッガを有効 | |
| user_pref('devtools.chrome.enabled', true); | |
| // リモートデバッガを有効 | |
| user_pref('devtools.debugger.remote-enabled', true); | |
| // DLディレクトリ | |
| user_pref('browser.download.dir', 'H:home\tmp'); | |
| // abount:configで警告を表示しない | |
| user_pref('browser.aboutConfig.showWarning', false); |
| ;; Gitのgrepがイカれててcape-dictが動かない | |
| (when (and (eq system-type 'windows-nt) | |
| (not (string-match "SCOOP" (executable-find "grep")))) | |
| (shell-command "scoop install gow")) |
| Set WshShell = WScript.CreateObject("WScript.Shell") | |
| Set WshFso = WScript.CreateObject("Scripting.FileSystemObject") | |
| EDGE_EXE = WshShell.ExpandEnvironmentStrings("%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe") | |
| SHARE_DIR = WshShell.ExpandEnvironmentStrings("%HOME%\opt\share\") | |
| EDGE_PROFILE_DIR = SHARE_DIR + "edge\profile\" | |
| If Not WshFso.FolderExists(EDGE_PROFILE_DIR) Then | |
| WshShell.Run("%ComSpec% /c md " + EDGE_PROFILE_DIR) | |
| End If |
| REM 上手くいく | |
| wsl sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf" | |
| REM これは失敗する | |
| wsl echo 'nameserver 8.8.8.8' > /etc/resolv.conf |
| Set WshShell = WScript.CreateObject("WScript.Shell") | |
| Set WshShell = WScript.CreateObject("WScript.Shell") | |
| Set WshFso = WScript.CreateObject("Scripting.FileSystemObject") | |
| EDGE_EXE = WshShell.ExpandEnvironmentStrings("%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe") | |
| SHARE_DIR = WshShell.ExpandEnvironmentStrings("%HOME%\opt\share\") | |
| EDGE_PROFILE_DIR = SHARE_DIR + "edge\profile\" | |
| If Not WshFso.FolderExists(EDGE_PROFILE_DIR) Then | |
| WshShell.Run("%ComSpec% /c md " + EDGE_PROFILE_DIR) |
| ~ ~ | |
| , 、 | |
| . 。 | |
| / ・ | |
| : ー | |
| ; っ | |
| [ 「 | |
| ] 」 | |
| a あ | |
| ba ば |
| (advice-add 'format-all--buffer-easy :around #'tt/format-all/prettier-config) | |
| (defun tt/format-all/prettier-config (orig executable &rest args) | |
| ;; tramp-modeでprettier使用時にローカルのconfigを読み込ませる | |
| (when (and (string-match "prettier" executable) (tramp-tramp-file-p (buffer-file-name))) | |
| (setq args (append (list "--config" (tt/nice-path "~/.prettierrc")) args)) | |
| (apply orig executable args) | |
| )) |
| ;;; backup file | |
| (setq make-backup-files t) | |
| (setq backup-directory-alist | |
| (cons (cons "\\.*$" (tt/nice-path (concat user-emacs-directory "backup/"))) ; ディレクトリ | |
| backup-directory-alist)) | |
| (setq version-control nil) ; 世代管理はしない | |
| (setq vc-make-backup-files t) ; gitなどのバージョン管理下においてもバックアップは取る https://www.366service.com/jp/qa/a0bf9bef5bc6d7e31b505b32e84acae6 | |
| ;; 特定のメジャーモードではバックアップを取らない | |
| (defconst tt/backup/no-backup-modes '(fundamental-mode git-commit-mode)) | |
| (dolist (mode |