SiteMap / AllPages / Out

ComintMode

Leveraging Comint

Since SqlMode is based on comint-mode, several aspects of SQLi buffers can be controlled by setting comint variables: automatically truncate buffers to a certain size, size of the input ring (history). You can either set these variables globally in your .emacs (in which case they will affect other modes such as shell-mode), or you can set these variables on a sql-interactive-mode-hook:

    (add-hook 'sql-interactive-mode-hook
              (function (lambda ()
                          (setq comint-output-filter-functions 'comint-truncate-buffer
                                comint-buffer-maximum-size 5000
                                comint-scroll-show-maximum-output t
                                comint-input-ring-size 500))))

Similar settings make sense for other ComintMode based code such as MuClient.


SiteMap / AllPages / Out / kensanata@gmail.com / Last change: 2001-03-25