Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Weiner rswgnu

View GitHub Profile
@rswgnu
rswgnu / rsw-company-config.el
Last active Dec 8, 2017
RSW-Company-Config: My configuration for making Emacs company mode completion work more intuitively
View rsw-company-config.el
(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 Oct 9, 2017
Recursively moves and replaces conflicted Dropbox files keeping the newer one of each pair
View dropbox-fix-conflicts
#!/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 Aug 27, 2017
InfoDock, https://sourceforge.net/projects/infodock, Menubars from XEmacs (could be easily adapted to GNU Emacs) to simplify usage and expose useful functionality
View id-menubars.el
;;!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