Skip to content

Instantly share code, notes, and snippets.

View holgerschurig's full-sized avatar

Holger Schurig holgerschurig

View GitHub Profile
namespace GraphicsTestApp
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
@holgerschurig
holgerschurig / gist:3817f10540079792e8c225b8d26e59a5
Last active November 3, 2019 16:18
my lsp / clang configuration
;;; Package: lsp-mode - language server protocol
(use-package lsp-mode
:straight t
:diminish lsp-mode ;; I can see if it is active in the menu!
:commands (lsp lsp-deferred)
:hook ((c-mode . lsp-deferred)
(c++-mode . lsp-deferred))
:bind (:map lsp-mode-map
("C-c o" . lsp-describe-thing-at-point)
@holgerschurig
holgerschurig / gist:8632074405363e37c0f1bc65fc363d0e
Created February 19, 2019 11:30
compile commands looking for main directory
(let ((default-directory (or (locate-dominating-file "." ".git")
(locate-dominating-file "." ".svn")
(locate-dominating-file "." "CMakeLists.txt")
(locate-dominating-file "." "GNUmakefile")
(locate-dominating-file "." "Makefile")
default-directory)))
(cd (or (locate-dominating-file (buffer-file-name) ".git") "."))
(compile compile-command)
(use-package ediff
:commands (ediff-setup-keymap)
:config
(setq ediff-window-setup-function 'ediff-setup-windows-plain)
(setq ediff-split-window-function 'split-window-horizontally)
(setq ediff-diff-options "-w")
(defun my--ediff-hook ()
(ediff-setup-keymap)
(bind-key "j" 'ediff-next-difference ediff-mode-map)
(bind-key "k" 'ediff-previous-difference ediff-mode-map))
@holgerschurig
holgerschurig / update.sh
Created December 8, 2016 21:24
How to stay up track changes in git projects
#!/bin/sh
# Step 1: clone projects into directories with a leading "git-":
#
# git clone http://foo.org/foo.git git-foo
# git clone http://bar.org/bar.git git-bar
#
# Step 2: some hours/days/weeks later, run this script:
#
# ./update.sh