Skip to content

Instantly share code, notes, and snippets.

View rswgnu's full-sized avatar

Robert Weiner rswgnu

View GitHub Profile
@rswgnu
rswgnu / rsw-company-config.el
Last active December 8, 2017 23:16
RSW-Company-Config: My configuration for making Emacs company mode completion work more intuitively
(with-eval-after-load "company"
(global-company-mode 1)
(setq company-show-numbers t
company-selection-wrap-around t
company-idle-delay nil)
;; (company-quickhelp-mode 1)
(autoload 'company-quickhelp-manual-begin "company-quickhelp"
"Manually trigger the ‘company-quickhelp’ popup for the active ‘company’ completion candidate." t)
(define-key company-active-map (kbd "C-c h") #'company-quickhelp-manual-begin)
;; Use TAB key only for completion selection
@rswgnu
rswgnu / dropbox-fix-conflicts
Created October 9, 2017 03:16
Recursively moves and replaces conflicted Dropbox files keeping the newer one of each pair
#!/bin/bash
# Description: Recursively moves and replaces conflicted Dropbox files keeping the newer one of each pair
# Usage: <script-name> - Shows what files would be moved and replaced but does not do any replacements
<script-name> replace - Performs file replacements
# Based on: http://mechanicalscribe.com/notes/fix-dropbox-conflicts-automatically/
# Thx, http://stackoverflow.com/questions/20723868/batch-rename-dropbox-conflict-files
@rswgnu
rswgnu / id-menubars.el
Last active August 27, 2017 04:53
InfoDock, https://sourceforge.net/projects/infodock, Menubars from XEmacs (could be easily adapted to GNU Emacs) to simplify usage and expose useful functionality
;;!emacs
;;
;; FILE: id-menubars.el
;; SUMMARY: InfoDock major-mode-specific menubars.
;; USAGE: XEmacs Lisp Library
;;
;; AUTHOR: Bob Weiner
;; ORG: BeOpen.com
;;
;; ORIG-DATE: 9-Nov-92 at 15:56:31