Makefile

Updated: 11.10.2022 Here are some references to start using makefile. It makes automation easily by just running make. Nevertheless, some Apps need to be installed if running in Windows. The easiest way to install Apps is to use scoop to install make and additionally with sed.

Read More

C++ basic

I just start playing around with C++ and how to combine it with Emacs. This website on cpp-programming and Intro to C++ are the starting point for me. The extended aim is to be able to write some C++ codes that can be part of R.

Read More

Export to LaTeX

This is what I have done to solve the problem in Windows mainly to be able to run in Emacs with either .org or .tex file. Perl To compile using latexmk require perl to be installed in your machine. Check the path with where and ensure it’s registered in your PATH.

Read More

Git squash

Consider your new feature branch is called bugfix. You have done a lot of commits eg. 20 commits to the branch and want to squash all commits to one before merging to main. Standard squash The standard way is like this.

Read More

Emacs macros

Updated 2022.10.02 Apply macro in Emacs: Emacs How to use macros Emacs ways: C-x ( to start recording macro C-x ) to stop recording macro C-x e to execute the last macro defined M-x name-last-kbd-macro to name last defined macro M-x insert-kbd-macro to save named macro (copy result to .

Read More