This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Copyright (c) 2024, Philippe Ivaldi <www.piprime.fr> | |
;; 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 | |
;; (at your option) any later version. | |
;; This program is distributed in the hope that it will be useful, | |
;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env doomscript | |
;; An example script showing off how use Doom's CLI framework to write your own. | |
(defcli! (capture) | |
((key ("-k" "--key" key)) | |
&input input &args args) | |
"Open an org-capture window." | |
(exit! "emacsclient" "-a" "" "-e" | |
(format "(+org-capture/open-frame %S %S)" | |
(concat input (string-join args " ")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Put this file in the root directory of your Go project | |
;;; For more information see (info "(emacs) Directory Variables") | |
;;; https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html | |
((nil . ((eval . (setq local_project_root_path | |
(projectile-project-root)) | |
))) | |
(go-mode . ((eval . (set (make-local-variable 'flycheck-golangci-lint-config) (concat local_project_root_path ".golangci.yml"))) | |
(subdirs . true))) | |
(go-mode . ((eval . (set (make-local-variable 'lsp-go-build-flags) (vector "-tags=no_pprof"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Run gitwatch as a daemon | |
# $1 is the repository to monitor | |
# $2 is the stop/start command | |
# Exemple gitwatchd.sh /etc/ start | |
################################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put this file under /usr/share/X11/xorg.conf.d/50-marblemouse.conf | |
# Large button left : normal click | |
# Both large buttons : middle click | |
# Large button right : right-click | |
# Small button left : browser back | |
# Small button left+ball : scroll (verticaly or horizontally) | |
# Small button right : browser forward | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- psql prompt can be customized | |
\set PROMPT1 '%[%033[1;33m%]%M:%>%[%033[1;32m%] %n@%/%R%[%033[0m%]%# ' | |
\set PROMPT2 :PROMPT1 | |
\set PROMPT3 '>> ' | |
-- Missing LIMIT fetch count is set to 1000 | |
\set FETCH_COUNT 1000 | |
-- Set pager to off | |
\pset pager off |