   (setq-default lsp-ui-imenu-enable nil
                 lsp-ui-flycheck-enable t))
 
+(use-package yasnippet)
+
 (use-package company-lsp
   :commands company-lsp
   :after (lsp-mode company)

(when window-system
  (global-set-key (kbd "C-x C-c") 'ask-before-closing))

;;; Copied from sample.init.el
(defun Init-safe-require (feat)
"Try to REQUIRE the specified feature FEAT.  Errors occurring are silenced.
\(Perhaps in the future there will be a way to get at the error.)
Returns t if the feature was successfully required."
  (condition-case nil
      (progn (require feat) t)
    (error nil)))

;;; Copied from Bob Wisniewski's .emacs
;; displays the time a day on the bottom of the screen
;; also can display load

  (save-buffer)
  (kill-buffer nil))

;;;; Keybindings
(global-set-key "\C-cd" 'insert-current-date)
(global-set-key "\C-cs" 'insert-datestamp)
(global-set-key "\C-ct" 'insert-current-time)
(global-set-key "\C-c-" 'insert-dashed-line)
  ;;; keybindings only for windows
(global-set-key "\C-cc" 'completed)

;;; emacs compatibility
(eval-and-compile ;; Protect against declare-function undefined in XEmacs
  (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))


;;; .emacs ends here
(custom-set-variables
