From 00af380c16ce1175540022b9eb995125bf19e1cd Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Tue, 18 Jan 2022 09:55:24 +0100 Subject: [PATCH] Initial commit from korat --- .config/fish/conf.d/omf.fish | 7 + .config/fish/config.fish | 63 ++++ .config/fish/fish_variables | 32 ++ .config/fish/functions/fish_prompt.fish | 1 + .config/omf/bundle | 2 + .config/omf/channel | 1 + .config/omf/theme | 1 + .config/starship.toml | 70 ++++ .emacs | 471 ++++++++++++++++++++++++ .gitignore | 8 + 10 files changed, 656 insertions(+) create mode 100644 .config/fish/conf.d/omf.fish create mode 100644 .config/fish/config.fish create mode 100644 .config/fish/fish_variables create mode 120000 .config/fish/functions/fish_prompt.fish create mode 100644 .config/omf/bundle create mode 100644 .config/omf/channel create mode 100644 .config/omf/theme create mode 100644 .config/starship.toml create mode 100644 .emacs create mode 100644 .gitignore diff --git a/.config/fish/conf.d/omf.fish b/.config/fish/conf.d/omf.fish new file mode 100644 index 0000000..3e0f6d6 --- /dev/null +++ b/.config/fish/conf.d/omf.fish @@ -0,0 +1,7 @@ +# Path to Oh My Fish install. +set -q XDG_DATA_HOME + and set -gx OMF_PATH "$XDG_DATA_HOME/omf" + or set -gx OMF_PATH "$HOME/.local/share/omf" + +# Load Oh My Fish configuration. +source $OMF_PATH/init.fish diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..f376d50 --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,63 @@ +# -*- mode: shell-scrip -*- + +set fish_greeting "" + +################################################################################ +# exa +################################################################################ + +if type -q exa + alias ls="exa --git -g" + set -gx EXA_COLORS "da=36:uu=33:gu=33" +end + +################################################################################ +# Emacs +################################################################################ + +set -gx EDITOR "emacs -nw" +alias emacs="emacs -nw" +alias gemacs="emacs" + +################################################################################ +# Deb maintainer stuff +################################################################################ + +set -gx DEBFULLNAME "Alexandre Tuleu" +set -gx DEBEMAIL "alexandre.tuleu.2005@polytechnique.org" +set -gx GPGKEY "5915F6ED256016C6A44E7C907F8AA0EB0F59FF97" +set -gx DEBSIGN_KEYID $GPGKEY +set -gx DEB_BUILD_OPTIONS "parallel=15" + + +################################################################################ +# Go Lang +################################################################################ + +if test -x /usr/local/go/bin/go + set -gx GOROOT /usr/local/go + set -gx GOPATH $HOME/devel/go + set PATH $PATH $GOROOT/bin $GOPATH/bin +end + + +export MINICOM="-c on" + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +eval /home/atuleu/miniconda3/bin/conda "shell.fish" "hook" $argv | source +# <<< conda initialize <<< + +################################################################################ +# direnv +################################################################################ + +direnv hook fish | source + + + +################################################################################ +# Starship +################################################################################ + +starship init fish | source diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables new file mode 100644 index 0000000..34cbbe6 --- /dev/null +++ b/.config/fish/fish_variables @@ -0,0 +1,32 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3100 +SETUVAR fish_color_autosuggestion:969896 +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:c397d8 +SETUVAR fish_color_comment:e7c547 +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:c397d8 +SETUVAR fish_color_error:d54e53 +SETUVAR fish_color_escape:00a6b2 +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:00a6b2 +SETUVAR fish_color_param:7aa6da +SETUVAR fish_color_quote:b9ca4a +SETUVAR fish_color_redirection:70c0b1 +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_greeting: +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:B3A06D\x1eyellow +SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish new file mode 120000 index 0000000..b1b9ccf --- /dev/null +++ b/.config/fish/functions/fish_prompt.fish @@ -0,0 +1 @@ +/home/atuleu/.local/share/omf/themes/boxfish/fish_prompt.fish \ No newline at end of file diff --git a/.config/omf/bundle b/.config/omf/bundle new file mode 100644 index 0000000..abef50c --- /dev/null +++ b/.config/omf/bundle @@ -0,0 +1,2 @@ +theme bobthefish +theme default diff --git a/.config/omf/channel b/.config/omf/channel new file mode 100644 index 0000000..2bf5ad0 --- /dev/null +++ b/.config/omf/channel @@ -0,0 +1 @@ +stable diff --git a/.config/omf/theme b/.config/omf/theme new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/.config/omf/theme @@ -0,0 +1 @@ +default diff --git a/.config/starship.toml b/.config/starship.toml new file mode 100644 index 0000000..6c53ca2 --- /dev/null +++ b/.config/starship.toml @@ -0,0 +1,70 @@ +#format = """$character""" +#right_format = """$all""" + +add_newline = false + +[cmake] +disabled = true + + +[character] # The name of the module we are configuring is "character" +success_symbol = "[◤](#444444)" # The "success_symbol" segment is being set to "➜" with the color "bold green" +error_symbol = "[◤](red)" # The "success_symbol" segment is being set to "➜" with the color "bold green" + +[username] +style_user="bold green" +format="[$user]($style)@" +show_always = true + +[hostname] +ssh_only = false +style="cyan" +format = "[$hostname]($style) in " + +[directory] +style = "bold yellow" +truncation_length = 8 +#truncate_to_repo = false + +[conda] +symbol = "⛎ " +style="green" +format = "[$symbol$environment]($style) " + +[python] +format="[$symbol$version]($style) " + +[nodejs] +format="[$symbol$version]($style) " + +[golang] +format="[$symbol$version]($style) " + +[status] +disabled = false +map_symbol = true +style="bg:#444444 red" +format = "[◤](#444444 bg:red)[$symbol $status ](bg:red)" + +[time] +disabled = false +style="bg:#444444 bright-white" +format="[◢](#444444)[$time ]($style)" +time_format = '%a %b %d %R' + +[git_branch] + +[git_commit] +tag_disabled=false + +[git_state] + +[git_metrics] +added_style="bold green" +deleted_style="bold red" +format='([+$added]($added_style) )([-$deleted]($deleted_style) )' +disabled=false + +[git_status] +style="bold red" +format='([\[$all_status$ahead_behind\]]($style) )' \ No newline at end of file diff --git a/.emacs b/.emacs new file mode 100644 index 0000000..1645274 --- /dev/null +++ b/.emacs @@ -0,0 +1,471 @@ + +(global-set-key (kbd "M-p") 'backward-paragraph) +(global-set-key (kbd "M-n") 'forward-paragraph) + + +(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(ansi-color-faces-vector + [default bold shadow italic underline bold bold-italic bold]) + '(ansi-color-names-vector + (vector "#eaeaea" "#d54e53" "DarkOliveGreen3" "#e7c547" "DeepSkyBlue1" "#c397d8" "#70c0b1" "#181a26")) + '(c-default-style + (quote + ((c++-mode . "tuleu-c++") + (java-mode . "java") + (awk-mode . "awk") + (other . "gnu")))) + '(company-idle-delay 20.0) + '(company-quickhelp-color-background "#4F4F4F") + '(company-quickhelp-color-foreground "#DCDCCC") + '(compilation-scroll-output (quote first-error)) + '(custom-safe-themes + (quote + ("842bf45f64e12795d4b8dcc9a30c1b5396b7794b12cedd81fd4531193b864872" "2540689fd0bc5d74c4682764ff6c94057ba8061a98be5dd21116bf7bf301acfb" "cdb4ffdecc682978da78700a461cdc77456c3a6df1c1803ae2dd55c59fa703e3" "332fcf3c7208aca9fab65d54203f78a242482e7fd65f5725a2482c20b1730732" "c7f10959cb1bc7a36ee355c765a1768d48929ec55dde137da51077ac7f899521" "c9ddf33b383e74dac7690255dd2c3dfa1961a8e8a1d20e401c6572febef61045" "bf798e9e8ff00d4bf2512597f36e5a135ce48e477ce88a0764cfb5d8104e8163" "36ca8f60565af20ef4f30783aa16a26d96c02df7b4e54e9900a5138fb33808da" "2a7beed4f24b15f77160118320123d699282cbf196e0089f113245d4b729ba5d" default))) + '(display-line-numbers-type t) + '(fci-rule-color "#14151E") + '(global-auto-revert-mode t) + '(global-display-line-numbers-mode t) + '(gofmt-command "goimports") + '(inhibit-startup-screen t) + '(linum-format "%03d ") + '(magit-revert-buffers (quote silent) t) + '(markdown-css-paths + (quote + ("file:///home/tuleu/.config/markdown/css/retro.css"))) + '(nrepl-message-colors + (quote + ("#CC9393" "#DFAF8F" "#F0DFAF" "#7F9F7F" "#BFEBBF" "#93E0E3" "#94BFF3" "#DC8CC3"))) + '(org-agenda-files (quote ("~/org/1.TODO.org"))) + '(package-archives + (quote + (("gnu" . "https://elpa.gnu.org/packages/") + ("melpa" . "https://melpa.org/packages/")))) + '(package-selected-packages + (quote + (projectile langtool flycheck elpy lsp-mode smart-tabs-mode opencl-mode company-go yasnippet-snippets yasnippet company-lsp ess ample-zen-theme auctex-latexmk dockerfile-mode dpkg-dev-el cmake-ide debian-changelog-mode debian-el nginx-mode sudo-edit typescript-mode yaml-mode string-inflection protobuf-mode markdown-mode auctex flymake-go go-mode srefactor company-glsl glsl-mode company company-cmake company-irony company-irony-c-headers irony magit lua-mode))) + '(pdf-view-midnight-colors (quote ("#DCDCCC" . "#383838"))) + '(safe-local-variable-values + (quote + ((TeX-master . "../../../main_fr.tex") + (TeX-master . "../../../main_fr") + (TeX-master . "../../../main_en") + (TeX-master . t) + (cmake-ide-build-dir . "/home/tuleu/devel/formicidae-tracker/fort-studio/build") + (cmake-ide-project-dir . "/home/tuleu/devel/formicidae-tracker/fort-studio") + (eval progn + (let + ((project-root-directory + (when buffer-file-name + (locate-dominating-file buffer-file-name ".dir-locals.el"))))) + (when project-root-directory + (setq compile-command + (concat "make -j 7 -C " project-root-directory)))) + (irony-additional-clang-options concat + (locate-dominating-file buffer-file-name ".dir-locals.el") + "/src") + (TeX-parse-self . t) + (compile-command concat "make -C " + (locate-dominating-file buffer-file-name ".dir-locals.el") + "/build all check doc") + (compile-command concat "make -C " + (locate-dominating-file buffer-file-name ".dir-locals.el") + "/build -j 7 all") + (compile-command concat "make -C " + (locate-dominating-file buffer-file-name ".dir-locals.el") + "/build") + (compile-command concat "make -C " + (locate-dominating-file buffer-file-name ".dir-locals.el") + "/build-trusty") + (compile-command concat "make -C " + (locate-dominating-file buffer-file-name ".dir-locals.el") + "/build -j 7") + (compile-command concat "make -C " + (locate-dominating-file buffer-file-name ".dir-locals.el") + "/build -j 7 check") + (compile-command concat "make -C " + (locate-dominating-file buffer-file-name ".dir-locals.el") + "/build -j 7 all check") + (compile-command concat "make -C " + (locate-dominating-file buffer-file-name ".dir-locals.el"))))) + '(srefactor--getter-prefix "Get") + '(srefactor--getter-setter-capitalize-p t) + '(srefactor--setter-prefix "Set") + '(tab-width 4) + '(vc-annotate-background nil) + '(vc-annotate-color-map + (quote + ((20 . "#d54e53") + (40 . "goldenrod") + (60 . "#e7c547") + (80 . "DarkOliveGreen3") + (100 . "#70c0b1") + (120 . "DeepSkyBlue1") + (140 . "#c397d8") + (160 . "#d54e53") + (180 . "goldenrod") + (200 . "#e7c547") + (220 . "DarkOliveGreen3") + (240 . "#70c0b1") + (260 . "DeepSkyBlue1") + (280 . "#c397d8") + (300 . "#d54e53") + (320 . "goldenrod") + (340 . "#e7c547") + (360 . "DarkOliveGreen3")))) + '(vc-annotate-very-old-color nil)) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(flymake-errline ((t (:foreground "brightred" :underline t))) t) + '(flymake-infoline ((t (:foreground "color-49" :underline "color-49")))) + '(flymake-warnline ((t (:foreground "color-208" :underline t))) t) + '(font-lock-function-name-face ((t (:foreground "burlywood4")))) + '(font-lock-string-face ((t (:foreground "brightmagenta")))) + '(line-number ((t (:inherit (shadow default) :foreground "gray25")))) + '(line-number-current-line ((t (:inherit line-number :foreground "gray40")))) + '(whitespace-hspace ((t (:foreground "lightgray")))) + '(whitespace-indentation ((t (:foreground "color-52")))) + '(whitespace-newline ((t (:foreground "color-237" :weight normal)))) + '(whitespace-space ((t (:foreground "color-237")))) + '(whitespace-space-after-tab ((t (:foreground "firebrick")))) + '(whitespace-tab ((t (:foreground "color-237"))))) + + +(add-to-list 'auto-mode-alist '("\\.m$" . octave-mode )) +(toggle-scroll-bar -1) +(menu-bar-mode -1) +(tool-bar-mode -1) +(add-to-list 'default-frame-alist '(fullscreen . maximized)) +(set-face-attribute 'default nil :height 70) +;;(setq package-enable-at-startup nil) +;;(package-initialize) +;; (require 'auto-complete) +;; (require 'auto-complete-config) + +;; (if (getenv "GOPATH") +;; (progn +;; (require 'go-autocomplete) +;; (add-to-list 'load-path (concat (getenv "GOPATH") "/src/github.com/golang/lint/misc/emacs")) +;; (require 'golint) +;; ) +;; () +;; ) + +;; (ac-config-default) + +;; (define-key ac-mode-map (kbd "M-TAB") 'auto-complete) +;; (setq ac-auto-start nil) + + +(global-set-key (kbd "") 'compile) + +;;(require 'codyn-mode) + + +(defun c-c++-header () + "sets either c-mode or c++-mode, whichever is appropriate for +header" + (interactive) + (let ((c-file (concat (substring (buffer-file-name) 0 -1) "c"))) + (if (file-exists-p c-file) + (c-mode) + (c++-mode)))) +(add-to-list 'auto-mode-alist '("\\.h\\'" . c-c++-header)) + + +(require 'iso-transl) + + +;; (require 'hideshow) +;; (require 'sgml-mode) +;; (require 'nxml-mode) +;; (add-to-list 'hs-special-modes-alist +;; '(nxml-mode +;; "\\|]*[^/]>" + +;; "