Skip to content

kimim/kimim-msys2

Repository files navigation

MSYS64 with emacs, texlive and more

This is a customized msys2 distro with additional applications for my daily use. Software and configurations include: mingw64 cli tools, emacs, texlive, doublecmd, firefox, sumatrapdf, rime, …

With this repo, I can have a uniform tools over Windows.

The setting up steps:

Installation

  1. install msys2 to anywhere, for example, C:\Users\kimim\msys64
  2. add customizations from http://github.com/kimim/kimim-msys2
    cd C:\Users\kimim\msys64
    git init
    git remote add origin http://github.com/kimim/kimim-msys2
    git fetch
    git reset origin/master
    git checkout -t origin/master
    git submodule init
    git submodule update
        

Windows Configure

remap keys

As an Emacs user, I prefer to remmap LShift to LCtrl and Caps to LShift. remap the keys with this reg file:

./kimikit/fix/swapcap.reg

fix inactive title bar color

Inactive Windows title bar background color is light gray, which is too light in dark theme, so I turn it to dark color with this reg setting:

./kimikit/fix/color.reg

MinGW tools

pacman -S mingw64/mingw-w64-x86_64-emacs \
       mingw64/mingw-w64-x86_64-rust \
       mingw64/mingw-w64-x86_64-clang \
       mingw64/mingw-w64-x86_64-go \
       mingw64/mingw-w64-x86_64-python-pygments \
       mingw64/mingw-w64-x86_64-graphviz \
       mingw64/mingw-w64-x86_64-sqlite3 \
       mingw64/mingw-w64-x86_64-ag

TexLive

https://www.tug.org/texlive/

License: https://www.tug.org/texlive/LICENSE.TL

Install TexLive to /texlive

beamer styles

git clone git@github.com:kimim/beamertheme-kimim.git \
    texlive/texmf-local/tex/latex/beamertheme-kimim
mktexlsr

Emacs

https://www.gnu.org/software/emacs/

License: General Public License 3.0

An extensible, customizable, free/libre text editor — and more. At its core is an interpreter for Emacs Lisp, a dialect of the Lisp programming language with extensions to support text editing.

Support SVG in Emacs

https://www.emacswiki.org/emacs/EmacsSvg

pacman -S mingw64/mingw-w64-x86_64-librsvg
(auto-image-file-mode 1)

Update Info dir

cd /mingw64/share/info
ls *.info* | xargs -I {} install-info {} dir

Compile texi

pacman -S msys/texinfo-tex mingw64/mingw-w64-x86_64-diffutils

Development

C++

Add gsl lib

  • put gsl to C:\Users\CNJIMA5\msys64\mingw64\include\c++\10.3.0\

clangd

pacman -S mingw-w64-x86_64-clang-tools-extra

Java

Java is required by Clojure.

  • Visit version tag at https://github.com/graalvm/graalvm-ce-builds/tags
  • Download graalvm-ce-java16-windows-amd64-21.x.x.zip
  • Unzip to /usr/local/lib/graalvm-ce-java16-21.x.x
  • Set PATH at ./etc/profile, for example:
    export JAVA_HOME=`cygpath -w /usr/local/lib/graalvm-ce-java11-21.0.0`
    export PATH=$PATH:/usr/local/lib/graalvm-ce-java11-21.0.0/bin/
    export PATH=$PATH:/usr/local/lib/graalvm-ce-java11-21.0.0/languages/js/bin/
        

Clojure

curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o lein
chmod +x lein
mv lein /usr/local/bin
lein

Applications

AutoHotkey

Rime & Weasel

Inkscape

https://inkscape.org/

License: General Public License 3.0

Inkscape is a Free and open source vector graphics editor for GNU/Linux, Windows and MacOS X. It offers a rich set of features and is widely used for both artistic and technical illustrations such as cartoons, clip art, logos, typography, diagramming and flowcharting. It uses vector graphics to allow for sharp printouts and renderings at unlimited resolution and is not bound to a fixed number of pixels like raster graphics. Inkscape uses the standardized SVG file format as its main format, which is supported by many other applications including web browsers.

GIMP

https://www.gimp.org

License: General Public License 3.0

GIMP is a cross-platform image editor available for GNU/Linux, OS X, Windows and more operating systems. It is free software, you can change its source code and distribute your changes.

Whether you are a graphic designer, photographer, illustrator, or scientist, GIMP provides you with sophisticated tools to get your job done. You can further enhance your productivity with GIMP thanks to many customization options and 3rd party plugins.

Freeplane

https://www.freeplane.org/wiki/index.php/Home

License: General Public License 2.0 or later

Freeplane is a free and open source software application that supports thinking, sharing information and getting things done at work, in school and at home. The software can be used for mind mapping and analyzing the information contained in mind maps.

Change style

Update Freeplane/resources/templates/standard-1.6.mm

  • change some font size

LilyPond

http://lilypond.org/

License: General Public License 3.0

LilyPond is a music engraving program, devoted to producing the highest-quality sheet music possible. It brings the aesthetics of traditionally engraved music to computer printouts. LilyPond is free software and part of the GNU Project.

Thunderbird

https://www.thunderbird.net/

License: Mozilla Public License 2.0

Thunderbird is a free email application that’s easy to set up and customize - and it’s loaded with great features!

Scale font size

  • Menu -> Preferences -> General -> Config Editor
  • search: “layout.css.devPixelsPerPx”
  • change the value from “-1.0” to “2.1”

see: https://support.mozilla.org/en-US/questions/1269224#answer-1282444

Account setting

For email account of outlook.

Receiving:

  • Server Type: IMAP Mail Server
  • Server Name: outlook.office365.com
  • Port: 993
  • Connection security: SSL/TLS

Sending:

  • Server Type: SMTP Server
  • Server Name: outlook.office365.com
  • Port: 587
  • Connection security: STARTTLS

Firefox

https://www.mozilla.org/

License: Mozilla Public License 2.0

Firefox is the fast, lightweight, privacy-focused browser that works across all your devices.

Sepia theme

https://addons.mozilla.org/firefox/addon/sepiafox/

Dark Background and Light Text

https://addons.mozilla.org/firefox/addon/dark-background-light-text

This extension is useful, that you can switch between light color and night color for web pages. It is good to use together with emacs kimim-light-theme and kimim-night-theme.

ShareX

https://getsharex.com/

License: General Public License 3.0

Screen capture, file sharing and productivity tool

Audio Recording

Task settings -> Screen recording options… -> Audio source

WinMerge

https://winmerge.org/

License: General Public License 3.0

inMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.

Double Commander

https://doublecmd.sourceforge.io/

License: General Public License 2.0

Double Commander is a free cross platform open source file manager with two panels side by side. It is inspired by Total Commander and features some new ideas.

wkhtmltox

https://wkhtmltopdf.org/

wkhtmltopdf and wkhtmltoimage are open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the Qt WebKit rendering engine. These run entirely “headless” and do not require a display or display service.

nsswitch.conf

remove db in nsswitch.conf:

- passwd: files db
- group: files db
+ passwd: files
+ group: files

Then put passwd and group information to files:

getent passwd $(id -u) > /etc/passwd
getent group $(id -G) > /etc/group

Otherwise, you will get this kind of error, when you start a shell terminal:

Could not fork child process: There are no available terminals (-1)

proxy

pacman -S openssh-netcat

Backup

  • Before backup, remove files under /var/cache/pacman/pkg/
  • compress files excludes: home, texlive and tmp

History

[2024-01-24 Wed]

  • start to keep history log for each update
  • add IgnorePkg = gnupg to /etc/pacman.conf to ignore update to gnupg, because latest gnupg does not work with emacs.
  • update kimim-emacs-everywhere

About

config files of msys2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published